What will happen when the following code is run:
int x;
while(x<100)
{
cout<<x;
x++;
}
1) The computer will output "0123...99"
2) The computer will output "0123...100"
3) The output is undefined
Answer Posted / sanish joseph
ans s absolutely right..
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is abstraction and encapsulation?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is the renewal class?
What is difference between abstraction and encapsulation?
What are the benefits of interface?
What is difference between class and object with example?
What is object in oops?
Can enum be null?
What is the difference between a mixin and inheritance?
What is the purpose of enum?
What are the 3 pillars of oop?
#include
What is difference between pop and oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?