How long does this loop run:
for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever
Answer Posted / g m rajput
int main()
{
int f=1;
for(:f:)
cout<<"f="<<f++<<"
;
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain what data encapsulation is in c++?
Can we overload operator in c++?
What is the difference between delegation and implemented-in-terms-of?
What does it mean to declare a destructor as static?
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.
What would happen on forgetting [], while deallocating an array through new?
What is the difference between global variables and local variable
Write about the local class and mention its use?
What is the difference between method overloading and method overriding in c++?
What is c++ programming language?
Write a function that swaps the values of two integers, using int* as the argument type?
What is difference between class and function?
What is problem with overriding functions?
What are formatting flags in ios class?
List the issue that the auto_ptr object handles?