size of char pointer or int pointer
printf("%d %d ", sizeof(s1),sizeof(s2));
Answer of this question is 2 ,2
and if we replace char *s1 , *s2 with int *s1, *s2 then also the answer is 2 ,2 .
Why this is so??
the size of char is 1 byte and int is 2 byte.
|All times are GMT. The time now is 08:23 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.