On 3/5/07, Ray Devore <[EMAIL PROTECTED]> wrote: [...] > Sorry for the confusion. You can assign the address > of a variable or dynamically allocated memory, but you > cannot assign a literal numeric value to a pointer > variable.
ISO/IEC 9899:1999 6.3.2.3 Pointers [...] 3 An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant. [...] 5 An integer may be converted to any pointer type. Except as previously specified, the result is implementation-defined, might not be correctly aligned, might not point to an entity of the referenced type, and might be a trap representation. 6 Any pointer type may be converted to an integer type. Except as previously specified, the result is implementation-defined. If the result cannot be represented in the integer type, the behavior is undefined. The result need not be in the range of values of any integer type. -- PJH Aio, quantitas magna frumentorum est
