filmov
tv
C Strings 27: Print only the string before new line character [C Programming]

Показать описание
Write a program in C to print only the string before new line character.
Note : isprint() will only print line one, because the newline character is not printable.
Expected Output :
Input (embedded in code):
The quick brown fox \n jumps over the \n lazy dog. \n
Result:
The quick brown fox.
=================================================
Note : isprint() will only print line one, because the newline character is not printable.
Expected Output :
Input (embedded in code):
The quick brown fox \n jumps over the \n lazy dog. \n
Result:
The quick brown fox.
=================================================