Fluid
  • Home
  • Archives
  • Categories
  • Tags
  • About
Home
Archives
Categories
Tags
About
Search
Dark
November 30, 2007 am
210 words 2 mins

#在C中用法

0.0.1. 示例

1
2
3
4
5
6
7
8
#include <stdio.h>

#define printTypeSize(x) {printf("sizeof("#x")\t = %d\n", sizeof(x));}
int main()
{
printTypeSize(char);
return 0;
}

0.0.2. 输出

sizeof(char) = 1


Tools
#gcc
#在C中用法
https://martinbj2008.github.io/2007/11/30/2013-06-22-pound-in-c/
Author
Martinbj2008
Posted on
November 30, 2007
Licensed under
嵌入Linux下的usb storage的支持 Previous
嵌入式linux的远程控制-Mini vnc Next

Table of Contents

Search

Hexo Fluid