C | Loops & Control Structure | Question 6
i = 3;
i = 5;
Predict the output of above program?
Explanation: The control first goes to the if statement where 0 is printed. The printf(“0”) returns the number of characters being printed i.e. 1. The block under if statement gets executed and i is initialized with 3.
Attention reader! Don’t stop learning now. Get hold of all the important C++ Foundation and STL concepts with the C++ Foundation and STL courses at a student-friendly price and become industry ready.