C | Input and Output | Question 13

Last Updated :
Discuss
Comments
Predict the output of following program? C
#include "stdio.h"
int main()
{
    char arr[100];
    printf("%d", scanf("%s", arr));
    /* Suppose that input value given
        for above scanf is "GeeksQuiz" */
    return 1;
}
9
1
10
100
Tags:
Share your thoughts in the comments