C언어
C언어 - 데이터 출력 (Output Data)
깅햄찌
2022. 8. 25. 21:01
반응형
String : printf("Hello_World"); // output "Hello_World"
newline : printf("Hello\n") ; // newline after output Hello
integer : printf("%d", 10); // output 10
float : printf("%lf", 1.2); // output 1.2
calculation : printf("%d", 3 + 7); // output 10
Typical control character
\n : newline
\t : tab
\r : carriage return
\b : backspace
\a : alert