:: C Language Interview Questions ::

Click on >> (Arrow for More Questions) 

  Answer/Explaination : 


1 2


(Exp) :
The sizeof() operator gives the number of bytes taken by its operand. P is a 
character pointer, which needs one byte for storing its value (a character). Hence 
sizeof(*p) gives a value of 1. Since it needs two bytes to store the address of the character 
pointer sizeof(p) gives 2.
 
 

Next >>

 
 

Quick Links

| Home | C Language | All India Entrances | Previous Year Papers | Software Projects

| Project Reports | Job Alerts & Notifications | Technical Interview Questions |

| Audio Visual Notes |