const volatile问题。
来源:互联网 发布:空军 知乎 编辑:程序博客网 时间:2024/06/06 12:57
#include<stdio.h>
void delay();
int i=1;
const volatile int *p=&i;
void main()
{
i=10;
switch(i)
{
case 1 :
printf("constant");
break;
case 10 :
printf("volatile");
default:
break;
}
}
void delay(int dly)
{
while(dly--);
}
void delay();
int i=1;
const volatile int *p=&i;
void main()
{
i=10;
switch(i)
{
case 1 :
printf("constant");
break;
case 10 :
printf("volatile");
default:
break;
}
}
void delay(int dly)
{
while(dly--);
}
0 0
- const volatile问题。
- c语言const、volatile问题小结
- const volatile
- const & volatile
- const volatile
- const & volatile
- const & volatile
- 有关const volatile int i = 100 的问题
- const和volatile修饰同一个变量的问题
- 关于const volatile int i=10 ?的问题
- const和const volatile关键字
- 谈谈volatile和const
- Const and volatile
- const,static,extern,volatile
- const volatile的使用
- 关键字static,const,volatile
- const ,mutable,volatile()
- volatile and const 用法
- 安卓studio开发项目_错误集合
- Objective-C Runtime Programming Guide 笔记01
- ImageLoder工具包
- loading descriptor for... & An internal error has occurred. Widget is disposed
- 像素的操作
- const volatile问题。
- 事件委托 EventHandler 。
- Volley ByteArrayPool
- MFC CheckBox控件选中或取消选中
- SQL HAVING用法详解
- input上传指定类型的文件
- Android群英传——目录
- 62. Unique Paths& 63. Unique Paths II &64. Minimum Path Sum
- python解析xml