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 is an adjust field format flag?
Comment on c++ standard exceptions?
What is the use of map in c++?
What is switch case in c++ syntax?
What is difference between malloc()/free() and new/delete?
Why is c++ difficult?
what is multi-threading in C++?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
Can I uninstall microsoft c++ redistributable?
Why do we use using namespace std in c++?
How would you use the functions sin(), pow(), sqrt()?
What is meaning of in c++?
How can you say that a template is better than a base class?
What is function prototyping?
What is algorithm in c++ programming?