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 / rakesh
the output is undefined
because c++ do not implicitly initialised the varible. it
gives garbage value for uninitialized variables
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is pure oop?
Why is oop useful?
can we make game by using c
What is polymorphism and why is it important?
#include
What is the real time example of encapsulation?
What is the important feature of inheritance?
Are polymorphisms mutations?
What is meant by oops concept?
what is graphics
What is encapsulation in oops?
Can a varargs method be overloaded?
Why polymorphism is used in oops?
What causes polymorphism?
What is class and object in oops?