+91 9945200008     support@uttaracomputers.com
LOGIN     REGISTER    

pointers

0
0

int * p;
p = &[some datatype]

Does  ‘*p’ and p reside at same address,prior to this i know that ‘*’ is used for anonymous access. but does it consumes memory?

  • You must to post comments
0
0

Thank you sir

  • You must to post comments
0
0
p   and    *p   are definitely at different addresses.   p   is at some address  available in the symbol table to the compiler.   Address of   amp   which is different,  is stored into    p’s   address at run time  and   *p  accesses    amp   anonymously.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.