전체 글

As much as I desire.
Index 함수 선언과 변수 유효 범위 Function Definition vs. Function Prototype Interface & Implementation Variable Scope Local Variable vs Global Variable 1.Function Definition vs. Function Prototype ① Function Prototype? Function Definition에서 Body 부분을 제거하고 Header 부분만 남긴 형태 ; (semicolon)을 덧붙임에 유의 Function Prototype, Funcion Declaration, Function Interface 등의 이름으로 불림 함수 호출에 필요한 정보는 모두 알려주지만 함수가 어떻게 구현/실현되는지를 보..
Index 함수의 개념과 호출 구조, 재귀 호출 함수의 개념 Function Definition void Function / Procedure Function Call Structure : Call Number / Call Depth Recursive Call 1. 함수의 개념 ✓ 함수(Function)? 함수: 상자 수; 상자에 수를 넣으면 수가 나옴 입력 값을 넣으면 출력값이 나오는 (Black) Box ✓ C 언어와 함수 C 언어는 크고 복잡한 일을 여러 개의 함수로 나눠 해결하는 것을 핵심 프로그램 원리로 한다 함수는 C 소스 코드의 핵심 구성 요소이며 소스 코드 규모와 관련 없이 하나 이상의 함수 정의(Funciton)으로 구성된다 2. Function Definition Header와 Body..
Index 반복문과배열(Array) 기초 while statements for statements Nested Loop Infinite Loop Array Array and Loop statements 1. while statement 조건 수식(cond_expression)이 참인 동안에 loop_statement를 계속 수행 ✓ while문의 동작 순서 2. for statement 조건 수식(cond_expression)이 참인 동안에 loop_statement를 계속 수행 for statement: for (init)clause; cond_expression; iteration_expression) Loop_statement; init_clause: 초기화 구문 cond_expression: 조건..
Index 제어 구조(Control)와 조건문 기초 Flow of Control, Control Construct if statement Comparison and Logical Operators if - else statement and Nested if statements 1. Flow of Control, Control Construct ✓ Flow of Control & Control Construct/Statement ① Flow of Control(제어 흐름)이란? 프로그램에서 실행되는 문장들의 실행 순서 특별히 지정하지 않으면, 프로그램 실행은 첫 번째 문장에서 시작하여 한 번에 한 문장씩 순차적으로 실행된다. ② Control Construct (제어 구조) / Control Stateme..
Index 자료형과 연산의 기초; 오류의 분류 Expressions, Operators 자료형과 연산 (Data Types and Operations) 형 변환 (Type Conversion) 오류의 분류 Syntax Error, Logical Error, Run-Time Error 1. Expressions, Operators ✓ 연산자와 수식 ① 수식 (Expression) 값을 나타내기 위한 일련(Sequence)의 연산자들과 피연산자들의 조합 ② 연산자 (Operator) 이미 정의된 산술 혹은 논리 연산을 수행하는 기호 C언어 연산자의 종류 ③ 피연산자 (Operand) 연산의 대상이 되는 상수, 변수, 혹은 다른 수식 등 cf. 피연산자 수에 따라 단항 연산자 (unary operator): ..
Index 프로그램 소스 코드의 구조 Function Definition: Heater + Body; Body : Declaration + Statement; Preprocessor Directives: #include, #define Comments: //, /* */ 변수 선언 (Variable Declaration) Type & Identifier 기초 표준 입출력 1. C 프로그램 소스 코드의 구조 ✓ C 프로그램 소스 코드의 구성 요소 ① 함수 (Function) C언어는 크고 복잡한 일을 여러 개의 함수로 나눠 해결하는 것을 핵심 프로그램 원리로 한다. 함수는 C 소스 코드의 핵심 구성 요소다. 항상 하나 이상의 함수 정의로 구성된다. 함수 정의(Function Definition)는 함수 식..
지미닝
지민 개발 블로그