diff --git a/.gitignore b/.gitignore index 092f3c4..ed2714e 100644 --- a/.gitignore +++ b/.gitignore @@ -107,3 +107,5 @@ dkms.conf *.out *.app + +core \ No newline at end of file diff --git a/chapter3/print2.c b/chapter3/print2.c new file mode 100644 index 0000000..6ccefcd --- /dev/null +++ b/chapter3/print2.c @@ -0,0 +1,14 @@ +#include + +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; +}