Vidyalelo
C++ Programming · Q125

Introduction to C++

Programming · C++ Programming · question 125

Q125

What will be the output of the following C++ code? #include using namespace std; int main () int cin; cin >> cin; cout << "cin: " << cin; return 0;

A.
cin: garbage value
Answer
B.
Error
C.
Segmentation fault
D.
Nothing is printed

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board