Using GETS in C Sample Program
Using the string Data type in C, this is usually the first option in displaying text in C, by invoking the %s, & Variable in the scanf() input function to read any data in inputs.
But the problem with the string input is that it is not able to show two words when you try to display the data, using gets is far more powerful and able to display two or more words in an input, see the sample program below for the Gets.
char a, b;
Using Gets in C Sample Program
- None Found