Question: 12. What is the output of the code given below? int main() { for (int i = 0; i < 3; ++i) { }

12. What is the output of the code given below? int main()    

12. What is the output of the code given below? int main() { for (int i = 0; i < 3; ++i) { } printf("%d", i); printf("%d", i); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include stdio h int main int i declare i outside the loop for i 0 i 3 i printfd i printfd ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!