--- id: c-operators title: "C Operators" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["operator categories", "C μ—°μ‚°μž"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.83 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["c", "programming-language", "w3schools", "operators"] raw_sources: ["https://www.w3schools.com/c/c_operators.php"] applied_in: [] github_commit: "" --- # [[C Operators]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The chapter's own chained example β€” `sum1 = 100 + 50; sum2 = sum1 + 250; sum3 = sum2 + sum2;` β€” demonstrates that `+` works identically whether combining two literals, a variable and a literal, or two variables, establishing early that C operators operate on VALUES regardless of whether those values come from literals or variable lookups. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Operator** β€” performs an operation on variables and/or values. [S1] - **Five operator categories** β€” Arithmetic, Assignment, Comparison, Logical, and Bitwise (marked "advanced"). [S1] - **Uniform operand handling** β€” the same operator (e.g. `+`) works on literal-literal, variable-literal, and variable-variable combinations identically. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Chained addition using literals and variables interchangeably: `int sum1 = 100 + 50; int sum2 = sum1 + 250; int sum3 = sum2 + sum2;` β€” evaluates to 150, 400, 800. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) - ν˜„μž¬κΉŒμ§€ 발견된 λͺ¨μˆœ 사항 μ—†μŒ (No contradictions found in available sources). ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” 이 챕터가 μ œμ‹œν•˜λŠ” 5개 μ—°μ‚°μž λΆ„λ₯˜κ°€ 이후 각 챕터(μ‚°μˆ /λŒ€μž…/비ꡐ/논리/λΉ„νŠΈ) ν•™μŠ΅μ˜ λ‘œλ“œλ§΅ 역할을 ν•œλ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) The + operator working uniformly across literals, a variable+literal, and variable+variable (C): ```c int sum1 = 100 + 50; // 150 (100 + 50) int sum2 = sum1 + 250; // 400 (150 + 250) int sum3 = sum2 + sum2; // 800 (400 + 400) ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.83 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[C Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[C Fixed Width Ints]], [[C Operators Arithmetic]] - **μ°Έμ‘° λ§₯락:** μ—°μ‚°μž μ„Ήμ…˜ κ°œκ΄€ β€” μ‚°μˆ  μ—°μ‚°μž(Operators Arithmetic) μ±•ν„°λ‘œ 이어짐. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” C Operators β€” https://www.w3schools.com/c/c_operators.php ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "C Operators" page (Astra wiki-curation, P-Reinforce v3.1 format).