On Nov 2, 9:39 pm, Ian Collins <ian-n...@hotmail.comwrote:
parag_p...@hotmail.com wrote:
On Nov 2, 12:32 pm, Andrey Tarasevich <andreytarasev...@hotmail.com>
wrote:
It is worth noting though, that NULL macro should normally be used in
pointer context and using it in place of an 'int' value is not a good
practice.
That helps thanks a lot.
I did not get the NULL macro.
Where is it defined?
It can be defined in a number of places (probably for
historical reasons), the standard lists them in C 2.2.3. For
your implementation, you'll have to do a search.
It must be defined in all of those places, according to the
standard. Or more correctly, it must be defined after you have
included any of those headers.
The usual header, if you just want NULL, is <cstddef>.
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34