为什么我的输出是问号?
程序代码:#include <stdio.h>
int main(void)
{
char c;
int i;
scanf("请输入一个字符:%c\n",&c);
printf("您输入的字符是:%c\n",c);
printf("您输入的字符的地址是:%p\n", &c);
i = &c;
printf("将地址赋值给I后,I中存储的值:%x\n", i);
getchar();
return 0;
}printf("您输入的字符是:%c\n",c); 这句输出的字符是问号
请问这是什么原因?
另外,printf("您输入的字符的地址是:%p\n", &c);
i = &c;
printf("将地址赋值给I后,I中存储的值:%x\n", i);
输出不完全一样,后几位的数字一样







