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 / deepanker aggarwal
the answer is 3 because x is not initialised and it may
contain any garbage value
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can static class have constructor?
what type of questions
What is the purpose of polymorphism?
What is and I oop mean?
Are polymorphisms mutations?
Why is object oriented programming so hard?
What do you mean by overloading?
Advantage and disadvantage of routing in telecom sector
Can enum be null?
What are the 3 principles of oop?
What is multilevel inheritance?
what's the basic's in dot net
What does sksksk mean in text slang?
What is interface? When and where is it used?
What is the difference between inheritance and polymorphism?