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 / ibrazileasum
The initial value of x is not defined to '0' hence the complier will not start from 0 as initial value. This is a garbage error to the compiler
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the concepts involved in Object Oriented programming.
Why do we use polymorphism in oops?
What is difference between data abstraction and encapsulation?
what is different between oops and c++
What are two types of polymorphism?
What is encapsulation in simple terms?
What are the features of oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is object in oop with example?
What is encapsulation with example?
What is pointer in oop?
What is a class in oop?
What is oops?what is its use in software engineering?
Can main method override?
What is byval and byref? What are differences between them?