在c语言中,“int”“long”“char”“unsigned”等原始数据类型……都是宏吗? 如果是这样,它们在哪里定义?它们是如何实现的,例如“int”类型?
最佳答案
它们不是宏,它们只是被编译器转换成合适的数据存储和操作。
例如当你的程序中有:
int i;
i=5
i+=7;
编译器将它翻译成类似这样的东西:
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
关于c - c 宏中的原始数据类型是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1695730/