Below is the C program and the output is 201. I have no idea how this is possible. Please explain this.
#include <stdio.h>
int main() {
int number = 288;
char * ptr;
ptr = (char * ) & number;
printf("%x", * ptr);
ptr++;
printf("%x", * ptr);
return 0;
}
This is in case of little endian machine. This question was asked in the MCQ contest on geeksforgeeks. But they provided no explaination of it.