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 variable example?
What is multilevel inheritance?
What is static modifier?
What are the data types in oop?
What is polymorphism what are the different types of polymorphism?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Get me an image implementation program.
Write a c++ program to display pass and fail for three student using static member function
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is ambiguity in inheritance?
What does and I oop mean?
What are main features of oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What are benefits of oop?
What are the 4 pillars of oop?