How to read character strings

Can someone show me how to do the following? I do not have the slightest clue

Part C - Reading character strings
Declare a character string variable that will hold 20 characters including the null character.
Using this variable:
· Read in, and then display a string with no embedded spaces.
· Read in, and then display a string with embedded spaces.
· Read in a string that contains only the enter key.
How much code have you written ?
Topic archived. No new replies allowed.