该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

使用自身初始化,具有indeterminate value,可能是trap representation导致使用这个对象的值引起undefined behavior。但这个初始化语法上是正确的,也没有语义错误。

ISO C11

3.19.2

1 indeterminate value

either an unspecified value or a trap representation

3.19.3

1 unspecified value

valid value of the relevant type where this International Standard imposes no requirements on which value is chosen in any instance

2 NOTE An unspecified value cannot be a trap representation.

3.19.4

1 trap representation

an object representation that need not represent a value of the object type

6.1

7 Structure, union, and enumeration tags have scope that begins just after the appearance of the tag in a type specifier that declares the tag. Each enumeration constant has scope that begins just after the appearance of its defining enumerator in an enumerator list. Any other identifier has scope that begins just after the completion of its declarator.

6.2.6.1

5 Certain object representations need not represent a value of the object type. If the stored value of an object has such a representation and is read by an lvalue expression that does not have character type, the behavior is undefined. If such a representation is produced by a side effect that modifies all or any part of the object by an lvalue expression that does not have character type, the behavior is undefined.50) Such a representation is called a trap representation.

50) Thus, an automatic variable can be initialized to a trap representation without causing undefined behavior, but the value of the variable cannot be used until a proper value is stored in it.

6.7.9

10 If an object that has automatic storage duration is not initialized explicitly, its value is indeterminate. ...

c语言int a什么意思,问一下吧里大神 int a = a; 这么定义是什么意思?相关推荐

  1. 理解C#语言中的类型转换----初学者的理解,请大神指教

    一下都是在视频教学中学到后的理解,如果说错了请大神指教 C#语言中的类型转换,就是将某个数据要转换成另一个类型的数据. c#语言中的数据类型主要有: char类型(字符类型): string类型(字符 ...

  2. C语言循环为1404的循环,考试,求大神帮忙,C语言,小弟感激不尽

    若有定义语句:int a=10; double b=3.14;,则表达式'A'+a+b值的类型是___________. (1) A).char B)int C) double D)float (2) ...

  3. vs2017添加C语言模版,「vs2017 项目模板」有没有大神知道vs2017怎么配置wdk10开发x64驱动...

    vs2017 项目模板: 有没有大神知道vs2017怎么配置wdk10开发x64驱动 设置目标或测试计算机是配置计算机以便进行自动驱动程序部署.测试和调试的过程.一个测试和调试环境具有两台计算机:主计 ...

  4. C语言和指针的本质是什么?技术大神给出答案

    很多编程语言都以 "没有指针" 作为自己的优势来宣传,然而,对于C语言,指针却是与生俱来的. 那么,什么是指针,为什么大家都想避开指针. 很简单, 指针就是地址,当一个地址作为一个 ...

  5. 判断数组相同数c语言_单片机常用的14个C语言算法,看过的都成了大神!

    算法(Algorithm):计算机解题的基本思想方法和步骤. C语言入门视频教程_9天精通Linux C语言 - 创客学院​www.makeru.com.cn 算法的描述:是对要解决一个问题或要完成一 ...

  6. 字节跳动面试必问:撸了大神写的spring源码笔记

    正文 一些看到我文章的朋友,问我怎么零基础Java"逆袭",又怎么学好Java. 以下是我的一些经验总结吧: 1.制定好一下系统的学习规划,每天定量,学完什么知识点就掌握,能自己应 ...

  7. c语言 怎么输出结点,c语言 线索二叉树 输入结点 输出前驱后继,大神们救命啊!!1...

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 #include #include //定义结构体 typedef struct BiThrNode { int data; struct BiThrNo ...

  8. 杭电c语言课程设计实验7,杭电1072 BFS 大神给看看啊 郁闷整整10个小时了 不知道哪里错wa...

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 NightmareTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K ( ...

  9. c 语言比较三个整数大小,C 语言 —— 比较三个整数的大小并从大到小输出

    思路一:定义两个比较大小的函数,依次两两比较输出最大或最小的数字(较为繁琐,最易分析) /* C 语言比较三个整数的大小并从大到小输出 思路:定义两个比较大小的函数,依次两两比较输出最大或最小的数字 ...

最新文章

  1. Python学习教程(Python学习路线):Python面试100题(二)
  2. Linux系统普通用户切换省略输入用户名密码
  3. 在Hadoop 2.3上运行C++程序各种疑难杂症(Hadoop Pipes选择、错误集锦、Hadoop2.3编译等)
  4. .net core发布 正在发现数据上下文_Tableau 2020.4 正式发布,即刻探索浏览器中的 Tableau Prep Builder、空间增强等新功能...
  5. UISwitch,UISegmentedControl及UISlider的初步学习
  6. 第二十一期:老大难的GC原理及调优,这全说清楚了
  7. excel保存快捷键_干货 | 快速提高工作效率的电脑快捷键!
  8. idea下载与安装 0913
  9. md5值最大长度_豆长老之比特币-哈希值是什么11月16日分享篇
  10. 一天一种设计模式之二-----备忘录模式
  11. 用微软的压力测试工具进行拒绝服务攻击
  12. PDO 查询mysql返回字段整型变为String型解决方法
  13. Python Selenium 调用IE浏览器失败Unexpected error launching Internet Explorer解决方法
  14. 4399ATAPI讲解操作事件篇
  15. netty权威指南(第二版)对应的源码
  16. 更改桌面 计算机 的图标w10,W10电脑系统如何修改桌面快捷方图标
  17. matlab开环传递函数 求单位负反馈的系统传递函数,利用matlab由开环传递函数求闭环传递函数并求其单位冲击和阶跃响应...
  18. 「来道题」Redis的Gossip协议
  19. python当前时间加一分钟_Python实现的当前时间多加一天、一小时、一分钟操作示例...
  20. __ffs 源码分析

热门文章

  1. 常见的技术类英文字母含义总结,Localhost、SDK、URL 等(持续更新中)
  2. hdu1962Corporative Network带权回路
  3. oracle死锁优化,Oracle性能优化之LockContention(转)
  4. python模块名限定_python 正则表达式 匹配 ?的使用 限定符 sys.re模块
  5. 字典排序什么意思_字典排序问题
  6. com/android/dx/command/main,com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0
  7. 只需五步学会Maven 3.6.1OR 3.6.3及其他版本的下载安装与配置【图文详解】
  8. PL/SQL批处理语句:BULK COLLECT 和 FORALL
  9. SSL双向认证和SSL单向认证的区别
  10. 【CentOS 7LAMP架构4】,PHP5和PHP7的安装和配置#171219