#include void main() { short s; short *ps = &s; char c; - TopicsExpress



          

#include void main() { short s; short *ps = &s; char c; char *pc = &c; printf(%d\n,ps); ps += 1; printf(%d\n,ps); printf(%d\n,pc); pc += 1; printf(%d\n,pc); printf(%d %d,sizeof(ps),sizeof(pc)); getch(); } the difference between initial address and updated address of ps or pc is depended on their datatype. because (2358968 - 2358966 = 2) and (2358966 - 2358965 = 1) but sizeof of all pointer is 4 byte(which is equivalent to integer type) why ?????
Posted on: Mon, 29 Sep 2014 21:38:37 +0000

Trending Topics



Recently Viewed Topics




© 2015