How long does this loop run:
for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever
Answer Posted / 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 |
Post New Answer View All Answers
What would happen on forgetting [], while deallocating an array through new?
What is the importance of mutable keyword?
Can a list of string be stored within a two dimensional array?
Which format specifier is used for printing a pointer value?
When you overload member functions, in what ways must they differ?
Which software is best for programming?
Describe friend function & its advantages.
When does a 'this' pointer get created?
Can we use this pointer inside static member function?
Is there any function that can skip certain number of characters present in the input stream?
Is string an object in c++?
What is the use of endl in c++?
How will you call C functions from C ++ and vice-versa?
What will happen if a pointer is deleted twice?
Explain what is polymorphism in c++?