1.

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

A. InterviewMania
B. Mania
C. Compilation Error
D. I M
E. None of these
Answer» D. I M


Discussion

No Comment Found