We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42acaaf commit 5f4162bCopy full SHA for 5f4162b
Chapter19/unsignedInt.c
@@ -1,14 +1,16 @@
1
// unsignedInt.c
2
// Chapter 19
3
-// <book title>
+// Learn C Programming
4
//
5
// Demonstrate how to
6
// 1) print unsigned values in octal, decimal, and hexadecimal
7
// 2) see what happens when you print negative numbers as unsigned values
8
// 3) explore powers of 2 and powers of 9
9
// 4) print out pointer values.
10
11
-// compile with: cc unsignedInt.c -o unsignedInt -Wall -Werror -std=c11
+// compile with:
12
+//
13
+// cc unsignedInt.c -o unsignedInt -Wall -Werror -std=c11
14
15
16
#include <stdio.h>
@@ -70,3 +72,7 @@ int main( void )
70
72
printf( " %%p [%p] pointer\n" , &smallInt );
71
73
printf( " %%#lx [%#lx] using hex\n\n" , (unsigned long)&smallInt );
74
}
75
+
76
+ // eof
77
78
0 commit comments