Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

What is the output of the following code?

  Shared By: Imogen Brown    Date: Feb 24    Category: C++ Programming    Views: 1656

Answer:

int n=10;
while (n<10)
cout<< “Number:”<<n+1;

Options

a) 10
b) 11
c) No output
d) None of the above

Answer : c) No output

Share: 
 

Didn't find what you were looking for? Find more on What is the output of the following code? Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: