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
What is use of overloading?
What are the types of abstraction?
What is polymorphism give a real life example?
what type of questions
What is oops and its features?
What is the advantage of oop over procedural language?
What are the 3 pillars of oop?
What does and I oop mean?
What is difference between multiple inheritance and multilevel inheritance?
Can we create object of abstract class?
What causes polymorphism?
Which language is not a true object oriented programming language?
What is an example of genetic polymorphism?
What is protected in oop?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.