intmain(void){ int big_int = 2147483647; float big_float = 3.4e38; float small_float = 10.0 / 3; printf("the big int data is %d\n", big_int + 1); printf("the big float data is %f\n", big_float * 10); printf("the big float data is %f\n", small_float); printf("the MAX float data is %f\n", FLT_MAX); printf("the MAX int data is %ld\n", INT_MAX); return0; }
/*这些东西懒得看了,数据类型啥啥啥的,遇到问题GPT就行,这是直接抄的代码*/
2
#include<stdio.h>
intmain(){ int num; printf("请输入一个数字:"); scanf("%d",&num); printf("%d对应的可见ASCII字符是:%c",num,num); }
/*%c输出ASCII字符*/
3
#include<stdio.h>
intmain(){ int num; printf("\a"); printf("hanhan is hero"); }