+ 1

What is the script for entering a blank line in C programming?

What is the code for when someone enters a blank line or just presses enter on a blank line it indicates that the user is finish with entering variables or characters?

11th Feb 2022, 5:05 PM
Realjay
3 Réponses
0
string line; getline(cin,line);
11th Feb 2022, 5:55 PM
Raul Ramirez
Raul Ramirez - avatar
0
In C you can use a escape character of \n for a new line, puts() also adds a new line so for a blank line you could: printf("\n"); puts(""); For a blank line.
11th Feb 2022, 6:05 PM
William Owens
William Owens - avatar