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
What is byval and byref? What are differences between them?
What do you mean by Encapsulation?
What is encapsulation process?
What is a null tree?
What is a class in oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Can bst contain duplicates?
What is new keyword in oops?
what are the ways in which a constructors can be called?
What are the three parts of a simple empty class?
What is inheritance write a program to show use of inheritance?
to find out the minimum of two integer number of two different classes using friend function
What is oops with example?
What is polymorphism give a real life example?
What is inheritance in simple words?