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
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
Is C++ case sensitive a) False b) Depends on implementation c) True
Which software is used for c++ programming?
Why do we use structure in c++?
What is linked list in c++?
How do you print a string on the printer?
Which function should be used to free the memory allocated by calloc()?
Why is c++ a mid-level programming language?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
How can you say that a template is better than a base class?
Explain the use of this pointer?
Explain class invariant.
Const char *p , char const *p What is the difference between the above two?
What are references in c++?
what is a reference variable in C++?