How long does this loop run:
for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever
Answer Posted / gaurav
forever because this loop is infinite condition.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what are the characteristics of Class Members in C++?
Is eclipse good for c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
How will you call C functions from C ++ and vice-versa?
What do you mean by static variables?
What is object file? How can you access object file?
What is lambda expression c++?
What are the various operations performed on stack?
What is double in c++?
Which ide is best for c++?
Which programming language is best?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
How do you write a function that can reverse a linked-list?
What does scope resolution operator do?
Write about the use of the virtual destructor?