comp.lang.c
[Top] [All Lists]

Re: K&R2 , exercise 7.6

Subject: Re: K&R2 , exercise 7.6
From: arnuld
Date: Wed, 30 Apr 2008 02:26:53 +0500
Newsgroups: comp.lang.c

> On Tue, 29 Apr 2008 01:30:35 -0700, Nick Keighley wrote:

> no! NULL can be defined as ((void*)0) (note the zero at the end).
> Have you read the comp.lang.c FAQ?


with some hard-thought I came to understand the distinction between NULL
and 0:


   1.) In case of pointers, use NULL.
   2 .) In cases where integral zero is requires, use 0.

except these 2 points, to me, every other discussion about NULL and 0 does
not seem important to me from programming in C perspective.



-- 
http://lispmachine.wordpress.com/
my email ID is at the above address


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy