0
2.6kviews
State true or false with reason : Scanf() function is used to input string having multiple words.
1 Answer
0
99views

Scanf() function is used to input string having multiple words. True

The Scanf function basically used to accept input from the user. The input data can be in different forms.
1. scanf("%c", &char):- %c is Used to read a next single char
2. scanf("%d ", &char):- %d is used accept input in a Decimal integer preceded with a + or - sign.
3. scanf("%s", &string):- %s will be used to accept string of characters. This will read subsequent characters until a whitespace is found

Please log in to add an answer.