How long does this loop run:
for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever
Answer Posted / awaneesh dubey
Never . It will show compile time error . boolean required
at the terminationa condition not int . i.e. it should be
for(int x=0; x==3; x++) not for(int x=0; x=3; x++) .
x=3 will cause compilation error. So answer is never .
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain Text Manipulation Routines?
What is the real purpose of class – to export data?
What are destructors?
Why c++ is faster than java?
What is object file? How can you access object file?
Why do we use vector in c++?
Define basic type of variable used for a different condition in C++?
What does obj stand for?
Explain the problem with overriding functions
What are the advantages of using typedef in a program?
Does c++ have string data type?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
what is VOID?
What is a binary file? List the merits and demerits of the binary file usagein C++.
Is c++ still being used?