What will be the output of the following C++ code? [code] #include<iostream> using namespace std; int main () { int cin; cin >> cin;

Danh Trịnh

New member
What will be the output of the following C++ code?
Code:
#include<iostream>
using namespace std;
int main ()
{
   int cin;
   cin >> cin;
   cout << "cin: " << cin;
   return 0;
}
A. cin: garbage value
B. Error
C. Segmentation fault
D. Nothing is printed
 

Tìm kiếm

Back
Top