%d


%u


%c


%s


%lf


%f


%o


모른다면 정상이다!


integer

float

double

array

string

unsigned

signed

long-int

long-long-int

character

hexadecimal

decimal

octa


이런 것에 대해 앞으로 배울 것이다!

익혀둬라!

#include <stdio.h>

int main(){



return 0;

}


코딩을 잘 모르더라도 위와 같은 코드는 한번 쯤 봤을 것이다.


#include // 포함하다!


<stdio.h> // std : standard    i : input  o : output   h : header

스탠다드 인풋 아우풋 헤더!


절대 studio 라고 외우지 말 것. 이유는 studio가 아니니까!

표준 인풋 아웃풋을 허용하게 해주는 헤더다! header에 대해서는 나중에 더 자세히 배워보자


return 0; // 간단히 말해서 끝내겠다는 말이다!

일정 코드를 수행하고


return 0; 이 있는 라인에 도달하면 프로그램을 마친다.


int main() // 메인함수, C 프로그래밍 컴파일에서 필수불가결한 함수이다!, 없으면 수행 안됨!


이정도면 기억해둬라!



; 을 semi colon 이라고 부르는데, 수행 명령마다 붙여줘야한다


semi colon 안 써서 bug 발생하는 경우가 많다.

+ Recent posts