expression(표현식)
compile되는 모든 것

constant(상수)

identifier(식별자)
*숫자로 시작x, 기호 포함x, 키워드 겹침x

arithmatic expression(수식)

operator(연산자)

modulus operator(나머지 연산자): %

c언어는 'case senstive 언어' 이다. (대소문자 구분)

표준 자료형
정수: int / 실수: double / 문자형: char

program structure
1. heading - comment(주석) : 어떤 프로그램인지 표기
2. preprocess directive(전처리 지시) : #include #define (constant)
3. function(함수) : 변수선언, 코드

평가결과: function에서 single value 내놓는 것 

++x : 증가된 값 대입 
x++ : 증가되지 않은 값 대입 

conversion(변환)
exclusive(배타적인)

논리 연산자
&& : and 
|| : or
! : not

비트 연산자
bit : 16진법(hexadecimal)
8bit = 1byte
4byte - 1word
ex) int = 4byte = 32bit


'programming > c' 카테고리의 다른 글

08. 자료형, 메모리 크기  (0) 2019.04.03
07. 숙제  (0) 2019.03.29
05. 실습 - 사칙연산, 관계, 자료형, scanf, printf  (0) 2019.03.22
04.  (0) 2019.03.22
03. 컴파일러, 알고리즘, IDE  (0) 2019.03.21
Posted by 도이(doi)
,