Q.What does the following C statement mean? scanf ("%4s', str);
Correct answer: Read maximum 4 characters from console
Explanation
The C statement 'Scanf ("%4s",str);' means that the function will read a maximum of 4 characters from the console input and store them in the 'str' array. This includes any spaces and the null terminator, which signifies the end of the string. Therefore, the correct answer is option (b).
The C statement 'Scanf ("%4s",str);' means that the function will read a maximum of 4 characters from the console input and store them in the 'str' array. This includes any spaces and the null terminator, which signifies the end of the string. Therefore, the correct answer is option (b).