Sail E0 Webinar
Question

What is the output of this program?

#include < iostream >

using namespace std;

int main( )

{

char line[100];

cin.getline( line, 100, 't' );

cout

Options:
A .  100
B .  t
C .  It will print what we give.
D .  None of the mentioned
Answer: Option C


In this program, We are printing the input what we read from cin.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers