File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11// character_string.c
22// Chapter 19
3- // <book title>
3+ // Learn C Programming
44//
55// Demonstrate how to
66// 1) print a string using minimum field width, precision and alignment.
77// 2) print sub-strings with pointer arithmetic.
88// 3) print a character using minimum field width and alignment
99//
10- // compile with: cc character_string.c -o character_string -Wall -Werror -std=c11
10+ // compile with:
11+ //
12+ // cc character_string.c -o character_string -Wall -Werror -std=c11
1113//
1214
1315#include <stdio.h>
@@ -34,4 +36,6 @@ int main( void )
3436 printf ( " %%c [%c] character\n" , aChar );
3537 printf ( " %%10c [%10c] character right-aligned, field=10\n" , aChar );
3638 printf ( " %%-10c [%-10c] character left-aligned, field=10\n\n" , aChar );
37- }
39+ }
40+
41+ // eof
You can’t perform that action at this time.
0 commit comments