#include <stdio.h>
#include <stdlib.h>
//A simple program that asks for an integer and prints it back out.
int main()
{
int a;
printf("Type an integer: ");
scanf("%d",&a);
printf("The integer you typed is: %d",a);
}
Run Code Online (Sandbox Code Playgroud)
如果用户输入一个字符,X那么由于某种原因输出总是64.为什么会这样?