(Why) is using an uninitialized variable undefined behavior?
在编程中,我们必须避免出现未定义的行为。
We believe that programmers should avoid undefined behavior.
是的,你确实遇到了未定义的行为。
Actually you have undefined behavior.
以下行为被视为ISOC标准未定义的行为:.
The following are considered undefined behavior by the ISO C Standard:.
这不是未定义的行为。
This is no undefined behavior.
如果没有这么做,则会导致出现未定义的行为。
Failure to do so will result in undefined behavior.
Increment-为什么这些结构(使用++)在C中是未定义的行为?
Stack Overflow: Why are these constructs(using++) undefined behavior?
这对于整数乘法是合法的,因为两个补码溢出是未定义的行为。
This is legal for integermultiplication because two's complement overflow is undefined behaviour.
我想要让大家看到C的那些阴暗角落比我们想象中更近,甚至那些平常的代码中就包含着未定义的行为。
I want to show that the dark corners of C are much closer than it seems,and even trivial code lines may contain undefined behavior.
当这种情况发生时,ØMQ的两个实例访问相同的变量,导致竞态条件,奇怪的错误和未定义的行为。
When such a situation occurs, both instances of ØMQ access the same variables, resulting in race conditions,strange failures and undefined behaviour.
从诸如的左值移动a是危险的,因为我们以后可以尝试通过调用成员函数a,调用未定义的行为。
Moving from lvalues such as a is dangerous, because we could later try to call a member function via a,invoking undefined behavior.
上述解决方案在C/C++中是错误的,因为它会导致未定义的行为(编译器可以以任何方式自由行事)。
The above solution is wrong in C/C++ as it causes undefined behaviour(compiler is free to behave in any way).
此外,“C带来了一些令人担忧的包袱、未定义的行为,以及其他导致安全缺陷和脆弱基础设施的弱点。
In addition,"C comes with some worrisome baggage, undefined behaviors, and other weaknesses that lead to security flaws and vulnerable infrastructure.".
在这两种情况下,任何进一步访问(包括对fclose()另一个调用)都会导致未定义的行为。
In either case any further access(including another call to fclose())to the stream results in undefined behaviour.
任何尝试修改具有临时生命周期的对象都会导致未定义的行为。
Any attempt to modify an object with temporary lifetime results in undefined behavior.
With the kernel written in C,it comes with some worrisome baggage,"undefined" behaviors, and other weaknesses that lead to security flaws and vulnerable infrastructure.
中文
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt