Difference between revisions of "C Programming"
From Nerdica Wiki
(Started C page, added format specifiers) |
(→Format Specifiers) |
||
Line 1: | Line 1: | ||
== Format Specifiers == | == Format Specifiers == | ||
− | %d = an integer whole number = 100 | + | %d = an integer whole number = 100<br> |
%f = a floating point number = 0.123456 | %f = a floating point number = 0.123456 | ||
%c = a single character = 'A' | %c = a single character = 'A' | ||
%s = a string of characters = "Hello World" | %s = a string of characters = "Hello World" | ||
%p = a machine memory address = 0x0022FF5C | %p = a machine memory address = 0x0022FF5C |
Revision as of 16:24, 29 March 2010
Format Specifiers
%d = an integer whole number = 100
%f = a floating point number = 0.123456
%c = a single character = 'A'
%s = a string of characters = "Hello World"
%p = a machine memory address = 0x0022FF5C