Q. What is the output of C program?

Code:
#include <stdio.h>
 
int main()
{
    unsigned int i = 65000;
    while (i++ != 0);
    printf("%d", i);
    return 0;
}
  • (A) Infinite Loop
  • (B) 0
  • (C) 1
  • (D) Run Time Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
278
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate