adress value of pointer NULL
-
hi, quick question about the pointer NULL. witch adress value does it have? does it happen to be 0xcccccccc? thnx, willem []D [] []D []
-
hi, quick question about the pointer NULL. witch adress value does it have? does it happen to be 0xcccccccc? thnx, willem []D [] []D []
What do you understand by "address value"? In most compilers, a null pointer, when converted to a number (an
int
, for instance), yields 0. Strictly speaking, this does not mean that a null pointer point to the address 0x00000000 (the standard marks as undefined conversion from pointers to integral values), although for some purposes you can assume this. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
sorry already got the solution, 0xcccccccc is the point adress value of a undefined pointer(standart value). i forgot the define my pointer before getting values from it. dumb dumb:D thnx anyways []D [] []D []
Willem B wrote: 0xcccccccc is the point adress value of a undefined pointer Actually, 0xCCCCCCCC is a defined value meaning uninitialized pointer. This is done on purpose by the compiler in debug mode so that you'll know when an uninitialized pointer is being referenced.
-
Willem B wrote: 0xcccccccc is the point adress value of a undefined pointer Actually, 0xCCCCCCCC is a defined value meaning uninitialized pointer. This is done on purpose by the compiler in debug mode so that you'll know when an uninitialized pointer is being referenced.
-
What warning level are you using?