Techiio-author
Started by Anik AdhikaryMay 7, 2022

Open
what function can be used to read a string containing spaces from the keyboard ?

3 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 3 VIEWES SHARE

someone please tell me ?

1 Replies

Techiio-commentatorMorrison Oak replied 10 days ago0 likes0 dislikes

Read string with spaces by using the "%[^\n]" format specifier. The format specifier "%[^\n]" tells the compiler that read the characters until "\n" is not found. See the output, now the program can read complete strings with white space.

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance