C++ MQCs with Explanation ( MANAGING CONSOLE I/O OPERATIONS )

Which of the following statements is illegal?

  1. cin.get(‘x’);
  2. cin.get(x);
  3. x = cin.get( );
  4. cout.put(‘x’);



Answer: 
Option b: cin.get(x);

Explanation Here

Post a Comment

0 Comments