

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following code segment in C++. How many times the for loop will be repeated?int main(){ Int f=1; for(;f;) cout<<”f=”<<<”\n”;< p>return 0;} |
A. | 10 times |
B. | Not even once |
C. | Repeated forever |
D. | Only once |
Answer» D. Only once | |