--- id: cpp-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.82 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["cpp", "programming-language", "w3schools", "operators"] raw_sources: ["https://www.w3schools.com/cpp/cpp_operators.asp"] applied_in: [] github_commit: "" --- # [[CPP Operators]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) C++ organizes operators into the SAME five categories as C (Arithmetic, Assignment, Comparison, Logical, Bitwise) β€” but unlike C's equivalent chapter, which explicitly labeled Bitwise as "advanced," C++'s overview lists it as an ordinary fifth category with no such qualifier, suggesting the tutorial treats bitwise operations as standard-tier knowledge rather than a specially-flagged advanced topic. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Operator** β€” performs an operation on variables and/or values. [S1] - **Five operator categories** β€” Arithmetic, Assignment, Comparison, Logical, Bitwise. [S1] - **Uniform operand handling** β€” the same operator 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) - **λΉ„νŠΈ μ—°μ‚°μžκ°€ "κ³ κΈ‰"으둜 별도 ν‘œμ‹œλ˜μ§€ μ•ŠμŒ**: C νŠœν† λ¦¬μ–Όμ€ λΉ„νŠΈ μ—°μ‚°μžλ₯Ό λͺ…μ‹œμ μœΌλ‘œ "advanced"라고 ν‘œμ‹œν–ˆμ§€λ§Œ, C++ νŠœν† λ¦¬μ–Όμ˜ 이 κ°œκ΄€ μ±•ν„°μ—μ„œλŠ” 그런 μˆ˜μ‹μ–΄ 없이 λ‹€μ„― 번째 일반 μΉ΄ν…Œκ³ λ¦¬λ‘œλ§Œ λ‚˜μ—΄λ¨. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” 이 챕터가 μ œμ‹œν•˜λŠ” 5개 μ—°μ‚°μž λΆ„λ₯˜κ°€ 이후 각 챕터 ν•™μŠ΅μ˜ λ‘œλ“œλ§΅ 역할을 ν•œλ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) The + operator working uniformly across literals, a variable+literal, and variable+variable (C++): ```cpp 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.82 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[C++ Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CPP Data Types RealLife]], [[CPP Operators Arithmetic]] - **μ°Έμ‘° λ§₯락:** μ—°μ‚°μž μ„Ήμ…˜ κ°œκ΄€ β€” μ‚°μˆ  μ—°μ‚°μž(Operators Arithmetic) μ±•ν„°λ‘œ 이어짐. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” C++ Operators β€” https://www.w3schools.com/cpp/cpp_operators.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "C++ Operators" page (Astra wiki-curation, P-Reinforce v3.1 format).