How long does this loop run:
for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever
Answers were Sorted based on User's Feedback
Answer / g m rajput
int main()
{
int f=1;
for(:f:)
cout<<"f="<<f++<<"
;
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
In what situations do you have to use initialization list rather than assignment in constructors?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What is the difference between the functions memmove() and memcpy()?
List the types of polymorphism in c++?
What is a constant? Explain with an example.
Why is c++ still used?
What is the role of copy constructor in copying of thrown objects?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What is the difference between static link library and dynamic link library?
Define precondition and post-condition to a member function?
What are references in c++?
Write a program to get the value of sin (x) using a library function , when x is given in degrees.