Last active
November 10, 2018 03:55
-
-
Save Magikh42/67dd0bb58fbdc3289212d24fdcdf16c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Simple specifiers, positive numbers : | |
%d:42 | |
%i:42 | |
%u:42 | |
%o:52 | |
%x:2a | |
%X:2A | |
Simple specifiers, negative numbers : | |
%d:-42 | |
%i:-42 | |
%u:4294967254 | |
%o:37777777726 | |
%x:ffffffd6 | |
%X:FFFFFFD6 | |
Characters : | |
%c:A | |
Pointers : | |
%p:0x2a | |
%p:0xffffffd6 | |
Other_: | |
%%:% | |
Invalid: | |
%l:% | |
%l:% | |
%l:% | |
%l:%Q | |
Maximum width, left and right justified : | |
%-d | |
42 | |
%10d | |
________42 | |
%-10d | |
42________ | |
Zeros padding : | |
%0d | |
42 | |
%10d | |
________42 | |
%010d | |
0000000042 | |
%-010d | |
42________ | |
%0-10d | |
42________ | |
%0p_0x0000002a | |
Positive numbers begins with a blank : | |
%d | |
-42 | |
%d | |
42 | |
%_d | |
-42 | |
%_d | |
_42 | |
%_+d | |
+42 | |
%_d | |
-42 | |
Alternate forms : | |
%o:52 | |
%#o:052 | |
%x:2a | |
%#x:0x2a | |
%X:2A | |
%#X:0X2A | |
Strings and precision : | |
%s | |
12345 | |
%7s | |
__12345 | |
%.2s | |
12 | |
%2.3s | |
123 | |
%3.2s | |
_12 | |
%3.2s | |
_12 | |
# @Magi#1913 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment