未定义行为

  • 网络Undefined behavior;undefine behavior;undefined behaviour
未定义行为未定义行为
  1. 浮点数到浮点数的转换仅当N是可表示时有定义;否则转换就是未定义行为。

    Floating to Floating conversions are defined only if N is representable ; if it is not , the conversion has undefined behavior .

  2. C/C++语言具有编程灵活,执行效率高等特点,但同时也存在大量未定义行为,易造成安全隐患。

    C / C + + programming languages have the advantage of flexibility and efficiency , but at the same time , lots of undefined behavior makes it easy to bring serious security violations .

  3. 否则,该程序将不符合ABI并带有未定义的行为。

    Otherwise , the program does not conform to the ABI and has undefined behavior .