标签:print font 变量 存储 for ges clu .com image
第十二章 存储类、链接和内存管理
1 #include<stdio.h> 2 3 void test_static() 4 { 5 int dy = 1; 6 static int static_int =1; 7 printf("%d %d \n",dy++,static_int++); 8 9 } 10 11 12 int main() 13 { 14 int i = 0; 15 for(;i<5;i++) 16 { 17 18 test_static(); 19 } 20 21 22 }
1 #include<stdio.h> 2 3 int main() 4 { 5 int array[100] = {0}; 6 int array_2[100] = {0}; 7 int * const p = array; 8 const int *q =p; 9 p = array_2; 10 11 12 }
区分const int *p; int * const p
volatile 与const 是相对的
标签:print font 变量 存储 for ges clu .com image
原文地址:http://www.cnblogs.com/liuchuanwu/p/7122907.html