Last Updated : 28 Feb, 2019

Consider the following program:

#include <stdio.h>
int main() 
{
    char str[50];

    scanf(\"%s\", str);

    printf(\"%s\", str);
}

What will be the output of the above program if “Geeks For Geeks” is passed as the parameter?

(A) Geeks For Geeks

(B) Geeks

(C) Error

(D) None of these


Answer: (B)

Explanation:

Quiz of this Question


Share your thoughts in the comments