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

If m and n represent integer values, which of the following statements is legal?

  1. cout.write(text, 10);
  2. cout.write(text, m);
  3. cout.write(text1, m).write (text2, n);
  4. All the above



Answer: 
Option c: cout.write(text1, m).write (text2, n);

Explanation Here

Post a Comment

0 Comments