4 ms·
That is untrue. UB exists because C is supposed to run on so many platforms there is no way to have a defined behaviour for all of them in that standard.
by unlinker 10y ago
That is untrue. UB exists because C is supposed to run on so many platforms there is no way to have a defined behaviour for all of them in that standard.
- wongarsu 10y agoMore importantly, C is not only supposed to run on many platforms (many programming languages do that), but also provide very low-level control on wide variety of platforms.
- pjmlp 10y agoWhich people keep forgetting is only available as implementation defined extensions, as such it is no longer ANSI C and any language compiler is free to have extensions.
- jjnoakes 10y agoThis is why implementation defined behavior exists. Undefined behavior though?
- pjmlp 10y agoI was already coding before C had any meaning outside UNIX.
- scott_s 10y agoYou are confusing undefined behavior with implementation defined behavior.