How long does this loop run:
for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever
Answers were Sorted based on User's Feedback
Answer / g m rajput
int main()
{
int f=1;
for(:f:)
cout<<"f="<<f++<<"
;
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sur
never..
because initially condition is true,
and x is false, so it will comes out of loop.
| Is This Answer Correct ? | 10 Yes | 23 No |
Who made c++?
Should I learn c++ c?
Which function should be used to free the memory allocated by calloc()?
explain the reference variable in c++?
Explain how to initialize a const member data.
What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }
What is the most common mistake on c++ and oo projects?
What are the 3 levels of programming languages?
Can a constructor throw a exception? How to handle the error when the constructor fails?
What do you mean by public protected and private in c++?
When should you use global variables?
What is object in c++ example?