The program below should outputs 'a' but it doesn't unless the commented line is uncommented.
I use MinGW compiler.
I use MinGW compiler.
Code:
int main()
{
char *cp;
char a = 'a';
char b = 'b';
cp = &b;
cp+=1;
//printf("ap=%p\n",&a);
printf("%c", *cp);
return 0;
}
Comment