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 |
Write a program to interchange 2 variables without using the third one.
How can you say that a template is better than a base class?
Difference between an inspector and a mutator
What is the type of 'this' pointer?
Explain data encapsulation?
What is the use of class in c++?
List the advantages of inheritance.
Can char be a number c++?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
Difference between overloaded functions and overridden functions
What is constant in c++ with example?
difference between c and c++?
38 Answers Cognizant, IBM, Infosys, Oracle, Sarva Shiksha Abhiyan, Wipro,