Multiple choice

In C programing, scanf function is not used to for string datatype because

  1. it cannot take a string

  2. it cannot take a space character

  3. it is used only for numerical values

  4. it takes only float datatype

  5. it take only int datatype

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Scanf terminates at space character so it is not used for string/Array. get(a) is the right choice for the purpose.