Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!usc!apple!agate!ucbvax!hplabs!hpfcso!hpldola!jg From: jg@hpldola.HP.COM (Joe Gilray) Newsgroups: comp.lang.c Subject: More NULL questions Message-ID: <5950001@hpldola.HP.COM> Date: 5 Oct 89 21:37:41 GMT Organization: HP Elec. Design Div. -ColoSpgs Lines: 38 Recently I've seen some discussion on the use of NULL, there was a lot of discussion but I still feel that I need the answers to the following questions: 1) what is the danger with using struct thing *ptr; . . . if (ptr != NULL) ... as apposed to struct thing *ptr; . . . if (ptr != (struct thing *)NULL) ... ? 2) Is there danger using int a, b; . . . my_func(a, NULL, b); as apposed to int a, b; . . . my_func(a, (struct thing *)NULL, b); when a) you are using function prototypes? b) you are NOT using function prototypes (like me)? Thanks for any help. -Joe Gilray