EmbLogic's Blog

pointers

how is memory allocated in expression int *i=100; ?? above statement does’nt show any error..but is the statement correct?? because in documents its written “when a pointer is declared it doesnot point anywhere,we must set it to point sumwhere before using it”..please clarify..

One Response to pointers

  1. chetan.malik says:

    100 is the memory address that this pointer i is addressing to.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>