Which of the following c statements is true?

a)for();
b)for(,);
c)for(;);
d)for(;;);


Tutorial answer:
d)for(;;);


Debugging solution:
Normally for loop contain three things for(intilizaiton;condition;increm/decr)
It will give like that for(;;) final semicolon is equal to ending the for loop for(;;);


Post a Comment

0 Comments