Big: 正好反着,high address那边是most least significant,跟平常手写法一样。
Little: 与之相反。
#include <iostream>
//using namespace std; can be igonred
int main (int argc, char *argv []) {
int a = 34677374;
int *ptr = &a;
int *ptr1 = ptr + 1;//ptr1 = 0xsomewhere of ptr + 4
printf("%d\n", ptr);//print the memory address
printf("%d\n", &ptr);//a little bit different as above, because & takes the address of ptr as a new variable
printf("%d\n", *ptr);//print the content of ptr, will be "34677374"
printf("%p\n", ptr1); //print pointed memeory address
return 0;
}