增加print2.c
This commit is contained in:
parent
bac6a1901c
commit
b3dad1a612
2
.gitignore
vendored
2
.gitignore
vendored
@ -107,3 +107,5 @@ dkms.conf
|
||||
*.out
|
||||
*.app
|
||||
|
||||
|
||||
core
|
14
chapter3/print2.c
Normal file
14
chapter3/print2.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user