Pointer: Int* ; =& (biến khác) Or int* =& (biến khác) Char 1 byte
Pointer: Int* ; =& (biến khác) Or int* =& (biến khác) Char 1 byte
Int* <biến>;
<biến>=&(biến khác)
Char 1 byte
Có char
Trỏ đè :int* <biến đè> = (int*)p;
-A pointer is a variable, which contains the address of a memory location of another variable, A
pointer provides an indirect method of accessing the value of a data item
To pass array and strings more conveniently from one function to another
To manipulate arrays easily by moving pointers to them instead of moving the arrays itself
• Thuật ngữ: Computer program: A set of instructions that computer hardware will execute.
• Structure of a loop:
– Initial block.
– Condition.
while
do while
for
C includes three keywords that allow jumps across statements: goto, continue, and break
GUIDELINES
• Initialize a variable when declaring it only if the initial value is part of the semantic of the
variable.
• Use in-line opening braces or start opening braces on a newline but don't mix the two styles.
• Avoid iterations with empty bodies - reserve the body for the algorithm
• Limit the initialization and iteration clauses of a for statement to the iteration variables
• Distribute and nest complexity
• Avoid fancy algorithms that may be efficient but are difficult to read
• Add additional comments where code has been fine tuned for efficient execution
• Remove all commented code and debugging statements from release and production code
(Software)A portion of a program that carries out a specific small function and may be used alone or
combined with other modules to create a program.
Function prototypes describe the form of a function without specifying the implementation details
Not fclose-fgetchar