小点
「已注销」
这个作者很懒,什么都没留下…
展开
-
【小点】const变量可以修改么?
1、直接对const变量修改#include <stdio.h>int main(){ const int a = 10; a = 1; printf("a=%d",a); } 编译出错了。2、const变量通过指针修改试验#include <stdio.h>int main(void) { const int i...原创 2020-01-18 22:19:47 · 313 阅读 · 0 评论 -
【小点】scanf的读取原理
#include<stdio.h>int main(){ int a,b,c,d; printf("%d\n",scanf("%d%d%d%d",&a,&b,&c,&d)); printf("%c",getchar()); } scanf的返回值是读入的项数,当输入 m w 2 3返回值不是2,由于scanf是从缓冲区第一个不是空白的数字...原创 2020-01-18 21:29:14 · 629 阅读 · 0 评论