1.

What will be the output of the following code if the user enter the value “GOOD MORNING”.1. char string [80]; gets(string); cout<<string;2. char string [80];cin>>string;cout<<string;3. charch; ch = getchar();cout<<ch;4. char string [80]; cin.getline(string,9);cout<<string;

Answer»

1. GOOD MORNING 

2. GOOD 

3. G 

4. GOOD MORN



Discussion

No Comment Found

Related InterviewSolutions