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 |
If you don’t declare a return value, what type of return value is assumed?
Why do we use iterators?
Comment on local and global scope of a variable.
Can we declare destructor as static? Explain?
What are the basics concepts of OOPS?
What are the different types of comments allowed in c++?
Difference between overloaded functions and overridden functions
Differentiate between a constructor and a destructor in c++.
What's the hardest coding language?
What are namespaces in c++?
Differentiate between late binding and early binding.
What is singleton class in c++?