--- id: c-output title: "C Output (Print Text)" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["printf", "C 좜λ ₯"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.84 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["c", "programming-language", "w3schools", "output", "printf"] raw_sources: ["https://www.w3schools.com/c/c_output.php"] applied_in: [] github_commit: "" --- # [[C Output (Print Text)]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) `printf()` never adds a trailing newline automatically β€” three consecutive `printf()` calls in the source's example all render on the SAME line with no separation, meaning C output concatenation is entirely the programmer's responsibility, unlike languages whose default print function appends a newline by convention. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`printf()`** β€” the standard function for printing text to the screen. [S1] - **Double-quote requirement** β€” text to print must be wrapped in `""`; omitting the quotes causes a compile error. [S1] - **No automatic newline** β€” calling `printf()` multiple times concatenates all output onto one line unless the programmer explicitly inserts a newline (covered in the next chapter). [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Basic print: `printf("Hello World!");`. [S1] - Quote requirement demonstrated by contrast: `printf("This sentence will work!");` versus the error-producing `printf(This sentence will produce an error.);`. [S1] - Newline-less concatenation: `printf("Hello World!"); printf("I am learning C."); printf("And it is awesome!");` β€” all three render on one continuous line. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - **printf()λŠ” μ€„λ°”κΏˆμ„ μžλ™ μ‚½μž…ν•˜μ§€ μ•ŠμŒ**: μ„Έ 개의 printf() 호좜 κ²°κ³Όκ°€ λͺ¨λ‘ ν•œ 쀄에 이어져 좜λ ₯λœλ‹€λŠ” 점이 직접 μ˜ˆμ‹œλ‘œ 증λͺ…λ˜λ©°, μ€„λ°”κΏˆμ„ μ›ν•œλ‹€λ©΄ λ³„λ„λ‘œ μ²˜λ¦¬ν•΄μ•Ό 함이 λ‹€μŒ μ±•ν„°λ‘œ 예고됨. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” μ—¬λŸ¬ printf() ν˜ΈμΆœμ„ ν•œ 쀄에 μ΄μ–΄λΆ™μ΄λŠ” νŠΉμ„±μ„ μ΄ν•΄ν•˜λŠ” 것이 λ‹€μŒ 챕터(μ€„λ°”κΏˆ)둜 λ„˜μ–΄κ°€λŠ” μ‹€μ „ 동기가 λœλ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Multiple printf() calls concatenating onto one line with no automatic newline (C): ```c #include int main() { printf("Hello World!"); printf("I am learning C."); printf("And it is awesome!"); return 0; } ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.84 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[C Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[C Statements]], [[C Comments]], [[C Newline]] - **μ°Έμ‘° λ§₯락:** ν…μŠ€νŠΈ 좜λ ₯ 기초 β€” 주석(Comments) μ±•ν„°λ‘œ 이어짐, μ€„λ°”κΏˆ(Newline) 챕터와 직접 μ—°κ²°. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” C Output (Print Text) β€” https://www.w3schools.com/c/c_output.php ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "C Output (Print Text)" page (Astra wiki-curation, P-Reinforce v3.1 format).