Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char n[] = "hello\nworld!";
    char s[13];
    sscanf(n, "%s", s);
    printf("%s\n", s);
    return 0;
}

A. hellonworld!

B. hello
world!

C. hello

D. hello world!

Answer: Option C


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output