Skip to content

meng-plus/C-PointerLecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C-PointerLecture

C语言专题知识讲解示例代码

目录

类型大小

各数据类型计算方法 点击->访问源码

类型 大小Byte(x86)
bool 1
char 1
short 2
int 4
long 4
float 4
double 8
void* 4
bool* 4
char* 4
short* 4
int* 4
long* 4
float* 4
double* 4
MyStruct 2
MyStruct* 4
int fun() 4
int fun()* 4

结论

  • 1.指针也是变量 他也占用空间,即使是void*
  • 2.指针长度取决于软件 32\64

About

C语言专题知识讲解示例代码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages