📊 C 기준 언어별 키워드 비교표
| 기능 | C | Python | C++ | Java | C# | JavaScript |
| 프로그램 시작 | main | 없음 | main | main | Main | 없음 |
| 출력 | printf | cout | System.out.println | Console.WriteLine | console.log | |
| 입력 | scanf | input | cin | Scanner | Console.ReadLine | 없음(브라우저 입력) |
| 조건문 | if | if | if | if | if | if |
| 반복문 | for, while | for, while | for, while | for, while | for, while | for, while |
| 함수 선언 | int func() | def func() | 동일 | 동일 | 동일 | function |
| 변수 선언 | int a | 없음(자동) | 동일 | 동일 | 동일 | let, var, const |
| 배열 | int arr[10] | 리스트 | 동일 | 배열/리스트 | 배열/리스트 | 배열 |
| 클래스 | 없음 | class | class | class | class | class |
| 포인터 | 있음 (*) | 없음 | 있음 | 없음 | 없음 | 없음 |
| 메모리 할당 | malloc | 자동 | new | new | new | 자동 |
| 반환 | return | return | 동일 | 동일 | 동일 | return |
📊 C 기준 언어별 연산자 비교표
| 기능 | C | Python | C++ | Java | C# | JavaScript |
| 산술 연산 | + - * / % | 동일 | 동일 | 동일 | 동일 | 동일 |
| 증감 연산 | ++ -- | ❌ 없음 | 있음 | 있음 | 있음 | 있음 |
| 비교 연산 | == != > < >= <= | 동일 | 동일 | 동일 | 동일 | 동일 |
| 논리 연산 | `&& | !` | and or not | 동일 | 동일 | |
| 대입 연산 | = | 동일 | 동일 | 동일 | 동일 | 동일 |
| 복합 대입 | += -= *= /= | 동일 | 동일 | 동일 | 동일 | 동일 |
| 나머지 | % | 동일 | 동일 | 동일 | 동일 | 동일 |
| 조건 연산자 | ? : | ❌ 없음 | 있음 | 있음 | 있음 | 있음 |
| 비트 연산 | `& | ^ ~ << >>` | 일부 있음 | 동일 | 동일 | 동일 |
| 타입 확인 | ❌ 없음 | type() | typeid | instanceof | is | typeof |
| 동등 비교(엄격) | ❌ 없음 | == (값 비교) | 동일 | 동일 | 동일 | === |
| 멤버 접근 | . , -> | . | . , -> | . | . | . |
* 자주 사용하는 구두점 (punctuator)

- 출처: c언어 프로그래밍 강의 자료|한성현 교수님
* 주석
| 종류 | 기호 | 사용 언어 |
| 한 줄 | // | C, Java 등 |
| 한 줄 | # | Python 등 |
| 여러 줄 | /* */ | C 계열 |
| 문서 | /** */ | Java, C# |
| 웹 | <!-- --> | HTML |
*실습 과제

'c언어 > 복습 과제' 카테고리의 다른 글
| c프로그래밍 9주차 (0) | 2026.04.29 |
|---|---|
| c프로그래밍 7주차 (0) | 2026.04.15 |
| c프로그래밍 6주차 (0) | 2026.04.08 |
| c프로그래밍 5주차 (0) | 2026.04.01 |
| c프로그래밍 2주차 (0) | 2026.03.11 |