增加print2.c

This commit is contained in:
LingZhaoHui 2021-10-07 22:23:50 +08:00
parent bac6a1901c
commit b3dad1a612
2 changed files with 16 additions and 0 deletions

2
.gitignore vendored
View File

@ -107,3 +107,5 @@ dkms.conf
*.out
*.app
core

14
chapter3/print2.c Normal file
View File

@ -0,0 +1,14 @@
#include <stdio.h>
int main(int argc, char* argv[]){
unsigned int un = 3000000000;
short end = 200;
long big = 65537;
long long veryBig = 12345678908642;
printf("un = %u, un not %d\n", un, un);
printf("end = %hd, end not %d\n", end, end);
printf("big = %ld, big not %hd\n", big, big);
printf("veryBig = %lld, veryBig not %ld\n", veryBig, veryBig);
return 0;
}