Lecture notes: first acquaintance with C language 2

1, given
the right project - Properties - Pretreatment added _CRT_SECURE_NO_WARNINGS
try to do the recommended function vs (does not have the versatility)
2, constant
literal
const defined properties but often variable from the variable (int arr [n] = {0 } is still not up and running)
identifier defined constants define
enumeration constant (in Lane enum Sex enumerated type has a corresponding value) is not changed
3, the string
enclosed in double quotes drawn stored in memory (as defined arr )
strlen (function) calculates the length of the string
4, the escape character
5, shortcuts Note: the Ctrl K, C
. 6, condition statements if else (after any increase;)
. 7, the while statement (ibid.)
8, the function
is divided into from library functions defined functions and
9, the array
int arr [i] denotes an i-th digit of the integer storage array
10, the operator
arithmetic operators + - * /%
shift operators (binary)
bit operators (and, or XOR)
Assignment operator,
unary operator,
binary operator (a+b),
ternary operator

Guess you like

Origin blog.51cto.com/15096016/2616445