摘要:
STACK_Principle 阅读全文
摘要:
STACK_HEAP_MEMERY_MAP NOTICE:For p1 , where is the address of p1 ?(0x200400) IN STACKFor p1 , where is the content of p1 ?(0x300200) IN HEA... 阅读全文
摘要:
to be continued 阅读全文
摘要:
Traverse the memory by (char*) , because every time it will increase by 1byte when i want get the int value , i need convert(char*) to (int*) , after ... 阅读全文
摘要:
How many bytes do pointers take up?on 16 bit systems take up 2 bytes on 32 bit systems take up4 bytes on 64 bit systemstake up8 bytes 阅读全文
摘要:
函数说明void* realloc (void* ptr, size_t size);语法指针名=(数据类型*)realloc(要改变内存大小的指针名,新的大小)。新的大小可大可小(但是要注意,如果新的大小小于原内存大小,可能会导致数据丢失,慎用!)头文件#include 有些编译器需要#incl... 阅读全文
该文被密码保护。 阅读全文
摘要:
MAX-byte alignment (最大单位对齐) 1 typedef struct user USER; 2 typedef struct employee E; 3 struct user{ 4 5 char name[10]; //take 12 bytes ... 阅读全文
摘要:
int *p[4]------p是一个指针数组,每一个指向一个int型的int (*q)[4]---------q是一个指针,指向int[4]的数组 --> type: int(*)[4] void main(){ // the pointer array char* arry[] = { "hel 阅读全文