What will be output of the following “c” code?


Loading

โœช Choose the correct option.

What will be output of the following “c” code?


#include

void main() {

printf("ABCDEFG ");

printf(4+"ABCDEFG");

printf("ABCDEFG"+4);

printf("%c", "ABCDEFG" [4]);

printf("%c", 4["ABCDEFG"]);

}

A. ABCDEFG EFGEFGEE
B. ABCDEFG
EFG
EFG
E
E
C. EFGEFGEE EFGEFGEE
D. ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG

Leave a Comment