嵌入式面试c语言试题.pdfVIP

  • 5
  • 0
  • 约 16页
  • 2017-08-26 发布于河南
  • 举报
第1 题: 考查对volatile 关键字的认识 #includesetjmp.h static jmp_buf buf; main() { volatile int b; b =3; if(setjmp(buf)!=0) { printf(%d , b); exit(0); } b=5; longjmp(buf , 1); } 复制代码 请问, 这段程序的输出是 (a) 3 (b) 5 (c) 0 (d) 以上均不是 第2 题:考查类型转换 main() { struct node { int a; int b; int c; }; struct node s= { 3, 5,6 }; struct node *pt = s; printf(%d

文档评论(0)

1亿VIP精品文档

相关文档