Answer to Question #34974 in C++ for Sammeh

Question #34974
What would the following code display if it were part of a complete program?
int num = 99;
num = 5;
cout << num << endl;
1
Expert's answer
2013-09-12T12:30:51-0400
#include<iostream>
#include<conio.h>
using namespace std;


int main()
{
int num = 99;
num = 5;
cout << num << endl;


_getch();


return 0;
}


The following code would display 5.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS