Re: *(int *)0=0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Preetham D Naik <pdn@sasken.com> wrote:
> (int*)0 is a pointer to address location zero

  (int *)0 is _not_ a pointer to address location
zero. It means that the address location zero is being
treated as an integer pointer. If you have something
like 
char *p = NULL, this is a pointer to address location
zero.

> same as (int * )100 is a ptr to location 100
  Not this either.

=====
Regards,
Kiran Kumar Immidi

__________________________________
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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux