Re:Null Pointer Dereferencing Causes Undefined Behavior
by Gibbon1 on Tuesday April 21, 2015 @01:42AM
(#9412449)
An of course plain C does not have 'objects' and a _lot_ of architectures have stuff mapped at address 0x0
Re:Null Pointer Dereferencing Causes Undefined Behavior
by nullc on Tuesday April 21, 2015 @04:59AM
(#9412906)
You may be mistaking C for a fancy macro assembler.
It's not-- It's a high level language, even though a fairly low level looking one. The obligation of the language is to behave as the spec says, and there may not be a close mapping between your program and what runs on the machine, though there often is.
An "Object" is a concept defined and used extensively in the language specification; "a region of data storage in the execution environment,".
Re:Null Pointer Dereferencing Causes Undefined Behavior
by rcfox on Tuesday April 21, 2015 @01:58AM
(#9412481)
While C is not an "object-oriented" language, it does have a concept of an object: http://port70.net/~nsz/c/c99/n1256.html#3.14p1
Do you have links stating otherwise?