// hello_ptr_size.c
#include <stdio.h>
int main()
{
int size_ptr = sizeof(void*);
printf("%d\n", size_ptr);
return 0;
}
#Makefile
hello_ptr_size:
编译执行:
make && ./hello_ptr_size
x64 平台打印 8,8bytes
// hello_ptr_size.c
#include <stdio.h>
int main()
{
int size_ptr = sizeof(void*);
printf("%d\n", size_ptr);
return 0;
}
#Makefile
hello_ptr_size:
编译执行:
make && ./hello_ptr_size
x64 平台打印 8,8bytes