Consider the following C code fragement -
char t = "abcdefghij";
int *p = t;
char *c = (char *)p;
Which of the following is/are correct?
Concepts about Little Endian and Big Endian
i think you wanted to write “endianess does not apply to strings array”
In array if size of each element is >1B, endianess is applicable. (array won’t be reversed, each element endianess will change)
But, in strings it’s only 1B, hence endianess not applicabe on strings.
ENDIANNESS DOES NOT APPLY TO ARRAYS