Q. What will be output for the following code?

Code:
int main()
{
    printf(""Hello"");
    main();
    return 0;
}
  • (A) 0 is returned
  • (B) Hello is not printed at all
  • (C) Hello infinite number of times
  • (D) Hello is printed once
πŸ’¬ Discuss
βœ… Correct Answer: (C) Hello infinite number of times

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate