I know, I should be working on my assignments right now but I feel sleepy already. Having work on my Kanji the whole day, it seems my mind is still preoccupied with characters instead of codes for my C programs. Why did I work on my Kanji instead of my 5 assignments and 10 exercises? It is because the computer unit at the office is under corrective maintenance for being infected with numerous viruses (no antivirus installed). Now, I am [...]
Archive for June, 2008
The following format specifiers can be used when programming in C. %d (or %i) int %c char %f float %lf double %s string %x hexadecimal By specifying an integer between the % and the format specifier, the number of spaces displayed can be controlled easily. %9d will display 9 spaces before a character is displayed %09 will display 9 zeros (0) before a character is displayed %-9d a negative sign will left align the result %-09d a zero(0) format will [...]






