1.

What will be the output of the following C code?
#include <stdio.h>
void main()
{
char *str= "WATCH";
char *ptr = str;
printf("%c %c", 1[ptr], str[1]);
}

A. A A
B. WATCH
C. Compilation Error
D. Garbage value
E. None of these
Answer» B. WATCH


Discussion

No Comment Found