(int*)0 is a pointer to address location zero same as (int * )100 is a ptr to location 100 "prasanna wakhare" <prasannawakhare@yahoo.com> wrote in message 20040123062201.85582.qmail@web14424.mail.yahoo.com">news:20040123062201.85582.qmail@web14424.mail.yahoo.com... > Hi all, > sorry for silly question again. > > in *(int * )0=0 > > we are dereferencing the NULL pointer coz' > > (int *)0 is pointer to NULL > and *(int *)0 is what we called dereferencing the ptr, > > but about syntax > > (int *)0 --> how compiler interprets it while > parsing phase or in any complex pointer assignment > can anybody explain this syntax? > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > http://webhosting.yahoo.com/ps/sb/ > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ >
*********************************************************************** PLEASE VISIT US AT STAND E13B, AT 3GSM WORLD CONGRESS 2004, CANNES. ******************************************************************** SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ***********************************************************************