[논리적 사유연습]printf 출력
#include int main() { printf("Integer: %d\n", 123); //123 printf("Integer: %d\n", 012); //10 printf("Integer: %d\n", 0x12); //18 printf("Real: %lf\n", 12.3); //12.300000 printf("Real: %e\n", 0.123); //1.230000e-001 printf("Real: %lf\n", 12.); //12.000000 printf("Real: %lf\n", 1.23E1); //12.300000 printf("Character: %d\n", '0'); //48 printf("String: %s\n", "Programming"); //Programming return 0; ..
2013.03.18