Q. What will be output if you will compile and execute the following c code? #include<stdio.h>
int main(){
char *str="Hello world";
printf("%d",printf("%s",str)); return 0;
}
-
(A)
10hello world
-
(B)
11hello world
-
(C)
hello world12
-
(D)
hello world13
β
Correct Answer: (D)
hello world13