不管输入什么,都显示1244996,求解答。。。
# include <stdio.h>int main (void)
{
char ch ;
ch = 0 ;
printf ("Please enter some characters.\n");
scanf ("%d",&ch);
printf ("Your entered characters is \n%d\n",&ch);
getchar ();
return 0 ;
}
为什么运行后总是显示同一个数字?
Please enter some characters.
250
Your entered characters is
1244996
Press any key to continue
不管输入什么内容都是1244996
请问这是什么原因?
谢谢!