Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

C++ | Misc C++ | Question 8

  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2021


Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.



#include<iostream>
using namespace std;
int main ()
{
       int cin;
       cin >> cin;
       cout << "cin" << cin;
       return 0;
}

Thanks to Gokul Kumar for contributing this question.
(A) error in using cin keyword
(B) cin+junk value
(C) cin+input
(D) Runtime error


Answer: (B)

Explanation:

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!