#include <stdio.h>
int main()
{
int a = -1;
char *p = &a;
printf("%x, %x",*p, *(p+1));
return 0;
}
output is = ffffffff,ffffffff
I know signed integer is represents as ffffffff.
* Expected result should print only one character because it char *
How *(p+1) is ffffffff ?
Is there any difference in
char *p = &a;
and
char *p;
p = &a;