Take a look at the following example:
int a = 130; char *ptr; ptr = (char *) &a; printf("%d", *ptr);
I expected to get a value