Pointer Arithmetic in c
//after1000 their is no 1001 bcoz size of integer is 4byte
#include <stdio.h>
int main()
{
int *p;
p = 1000;
*p++;
printf("size of integer %d\n bytes of operator\n" , sizeof(int) );
printf("size of character is %d bytes of operator\n", sizeof(char));
printf("%d", p);
return 0;
}
Comments
Post a Comment