본문 바로가기
Computer Technology 기록부/코딩기록부 : C, C++

Basic of C programming

by Amins 2022. 6. 14.

Term

- Preprocessor instruction : same with import ~~ in Python

- scope : sector of statements for Definition

- Variable declaration : int a; (declare the type of each variables)

assignment : a = 10 (assignment data in variable)

- call or invoke : printf(~~~)

- compiler - translate source code to object code

- linker - linking every object files and library code to make exe file

- Library code - code that already built in program

- Start up code - code that making initial programming environment 

 

 

Why we use variable?

  • To generalize the cases.
  • Each data address (memory) must be used to access data. However, in C programming, you don't need an address because you use variables to get data.

Why we need to declare type of data in advance?

  • CPU need to know what kind of data is it for calculate.
  • Each type of data has diffrent range of memory usage.

How to declare the data type?

 

댓글