Question:What would be printed on the standard output as a result of the following code snippet?
main()
{
        char *s="Hello World";
        char s1[20], s2[20];
        int len = sscanf(s,"%s",s1);
        printf("%s : %d", s1, len);
}
 

A Compilation Error 

B Hello World : 11 

C Hello World : 1 

D Hello : 5 

E Hello : 1 

+ Answer
+ Report
Total Preview: 554

Copyright © 2024. Powered by Intellect Software Ltd