Consider the following C code fragement -
#include<stdio.h>
int main()
{
char t[] = "abcdefghij";
int *p = t;
p+=2;
char *c = (char *)p;
printf("%c", *c);
}
Which of the following is/are correct?
- The output of the program in the little-endian system is $\textsf{“ i "}$ (without quotes).
- The output of the program in the big-endian system is $\textsf{“ i "}$ (without quotes).
- The output of the program in the big-endian system is $\textsf{“ i "}$ (without quotes).
- The output of the program in the little-endian system is $\textsf{“ i "}$ (without quotes).