GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  TCS  >  C

 Print  |  
Question:  If we declare a pointer like char *p;
how much memory is allocated for pointer variable 'p'.




February 02, 2007 08:44:39 #2
 winny gupta   Member Since: February 2007    Total Comments: 8 

RE: If we declare a pointer like char *p;how muc...
 
2 bytes of memory because the pointer variable, whatever data type it maybe pointing to is always an unsigned integer as the address is always a positive integer, hence requiring 2 bytes of memory
     

 

Back To Question