Translations:Development/Tutorials/Common Programming Mistakes/15/en: Difference between revisions
(Importing a new version from external source) |
(No difference)
|
Latest revision as of 07:31, 26 October 2019
In pointer context, the integer constant zero means "null pointer" - irrespective of the actual binary representation of a null pointer. Note, however, that if you want to pass a null pointer constant to a function in a variable argument list, you *must* explicitly cast it to a pointer - the compiler assumes integer context by default, which might or might not match the binary representation of a pointer.