在c中,是原始数据类型,如"int""long""char""unsigned"...所有宏?如果是这样,他们在哪里定义?它们是如何实现的,如"int"类型?
它们不是宏,它们只是由编译器转换为适当的数据存储和操作.
例如,当你进入你的程序时:
int i;
i=5
i+=7;
Run Code Online (Sandbox Code Playgroud)
编译器将其转换为类似于此的内容:
Allocate sizeof(int) bytes in the stack
Put the number 5 in the allocated space
Retrieve the number on the allocated space, add 7 to it, and save it again at the same location
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1272 次 |
最近记录: |