//观察程序如何处理整数上衣,浮点数上溢和浮点数下溢
#include <stdio.h>
int main(void)
{
printf("This is int overflow: %d\n", 2100000000*10000000);
printf("This is float overflow: %f\n", 9e1000000);
printf("This is float underflow: %f\n", 0.2e-50);
return 0;
}
2.
//编写一个程序,提示输入ASCII码,然后打印输入的字符
#include <stdio.h>
int main(void)
{
char ch;
printf("\aPlease enter an ASCII Code and the I will get you the correspond character:");
printf("_\b");
scanf("%d", &ch);
printf("%d is the ASCII code for %c. \n", ch);
return 0;
}
#include <stdio.h>
int main(void)
{
printf("\aStartled by the sudden sound, sally shouted,\n");
printf("\"By the Great Pumpkin, what was