Logo 
Search:

C++ Programming FAQ

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

What would be the output of the following code? char *str= “Managing Console I/O Operations”

  Shared By: Bing Fischer    Date: Apr 04    Category: C++ Programming    Views: 1030

Answer:

What would be the output of the following code?
char *str= “Managing Console I/O Operations”;
cout.write(str,15);

Options

a) Managing Console I/O Operations
b) Managing C
c) Managing Console
d) None of the above

Answer : c) Managing Console

Share: 
 



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


Tagged: