일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- jsp
- 웹개발기초
- DB
- 웹개발자
- servlet
- sql
- CSS
- 데이터베이스
- MVC패턴
- Bambino
- Programming
- job
- MSA
- Java
- two pointers
- spring boot
- html
- react
- coding test
- SpringFramework
- vite
- MVC
- 안드로이드
- BCIT
- 밤비노
- Doit알고리즘코딩테스트
- 웹개발
- Spring MVC
- mysql
- 자바
- Today
- Total
초보 개발자의 기록
[C] C program language 101 본문
#include <stdio.h>
header file library. Header files add functionality to C programs
White space
C ignores white space.
multiple lines makes the code more readable.
main()
main() is called a function. Any code inside its curly brackets {} will be executed
Esxape sequence
New lines \n
It forces the cursor to change its positio to the beginning of the next line on the screen.
To insert a new line, use the \n character
\n\n will create a blank line
other Escape sequence
\t : create a horizontal tab
\\ : Inserts a backslash character(\)
\" : Inserts a double quote character
printf()
It does not insert a new line at the end of the output
printf() is a function used to outputprint text to the screen.
Every C statement ends with a semicolon ;
Normally other languages use a print function to display the value of a variable but, not possible in C.
Comments
Coments can be used to explain code, and to make it more readable
It can also be used to prevent execution when testing alternative code.
- Single-line Comments
two forward slashes //
text between // and the end ot the line is ignored by the compiler ( will not be executed)
-Multi-line comments
Start with /* and ends with */