Answer to Question #34974 in C++ for Sammeh
What would the following code display if it were part of a complete program?
int num = 99;
num = 5;
cout << num << endl;
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment