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