68 240
Assignments Done
99%
Successfully Done
In November 2018

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;
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions