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
What is the difference between mutex and binary semaphore?
Can you Mention some Application of C/C++?
Write a program using display() function which takes two arguments.
What is the operator in c++?
Is arr and &arr are same expression for an array?
What is the full form of india?
What is general form of pure virtual function? Explain?
What are the two types of comments?
Explain polymorphism?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
Explain the virtual inheritance in c++.
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
What are the various operations performed on stack?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
When do we run a shell in the unix system? How will you tell which shell you are running?