Notice
Recent Posts
Recent Comments
Link
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags more
Archives
Today
Total
관리 메뉴

냥집사의 개발일지

C언어 - 데이터 출력 (Output Data) 본문

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


Comments