절차적 프로그래밍

순차적 프로시저/함수를 사용하는 패러다임.

Procedural programming is an imperative paradigm where programs are organized as sequences of instructions grouped into procedures (functions/subroutines).

Key characteristics:
1. Sequential Execution: Code runs top to bottom
2. Procedures: Reusable blocks of code (functions)
3. Global/Local Variables: Scope determines access
4. Modularity: Breaking code into smaller procedures
5. Structured Control Flow: if/else, loops, function calls

        graph LR
  Center["절차적 프로그래밍"]:::main
  Rel_object_oriented_programming["object-oriented-programming"]:::related -.-> Center
  click Rel_object_oriented_programming "/terms/object-oriented-programming"
  Rel_functional_programming["functional-programming"]:::related -.-> Center
  click Rel_functional_programming "/terms/functional-programming"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 5살도 이해할 수 있게 설명

절차적 프로그래밍은 레시피를 단계별로 따르는 것과 같습니다. 지시 1을 읽고, 그다음 2, 그다음 3. 함수는 자주 반복하는 작업을 위한 미니 레시피입니다!

🤓 Expert Deep Dive

구조적 프로그래밍 정리: 모든 계산 가능한 함수는 순서, 선택, 반복으로 표현할 수 있습니다. 스택 프레임이 지역 변수와 반환 주소를 관리합니다.

📚 출처