C language syllabus review

#include <stdio.h> 

int main () {

return 0 ;
}
/ *
* function
* - defined functions
* - parameter lists
* - by value
* - // address transmission address transmitted modify variable values
* - arrays as parameters
* - the first array element address transfer (array name)
* - pass the array length
* - string array as a parameter
* - pass the first array element address (access to "\ 0" up)
* - return value
* - If the return value of type void
* behind -return statement can not take any value
* - If the return value is not of type void
* - must return the value of the corresponding type
* - function can not return to the variables
*
* - pre-function declaration
* - function definition when statement at the time the statement after the function call, you need to pre-declare the function
* - // may only three formal parameter name is omitted pre-function declarations of interest
* - the return value type
* - function names
* - parameter list type and order number of the parameters and parameter, parameter names do not care
*
* - recursive function
* - direct or indirect calls itself, is called recursively
* - first determine recursive formula
* - first determine recursive formula in determining recursive end condition
* - (certainly before the end of the conditions, recursively) when writing code to write recursive end condition in writing recursive formula
* - pointer to the function
* int Fun (a int, int B);
* int (* P) (a int, int B);
* P (1,2); <==> Fun (. 1 , 2);
*
* - basic string operations (to write code implementation)
* -strlen ();
* -strcpy ();
* -strcat ();
* -strcmp ();
*
* - body results
* - structure the definition body
* - what is the type of structure type name
* - simplified by typedef type name
* Student typedef struct {
* char name [20 is];
* int Age;
* Student * struct tongzhuo; // not uppercase Student allows
* Student}, PStudent *;
* <==>
*. 1, typedef struct Student Student;
* 2, * Student PStudent typedef struct;
* - union, enum
* - joint, all members of a common memory, only the last function was assigned
* Union text {
* int A;
* doible B;
*};
* Union Test T;
* TA = 10;
* TB = 3.14;
* - essence enumeration is shaping, the shaped body but does not allow enumeration assigned to enumeration, enumeration can be assigned to the orthopedic
* Sex enum {Boy, Girl};
* enum Sex zhangsan;
* = zhangsan Boy ; // zhangsan = 0; // not
* int NUM = zhangsan;
* int NUM = Boy;
* - list
* - defined list of nodes
* -data
* -next
* struct {node
* char name [20 is];
* Age int;
* struct Node * Next;
*}
*
* Student struct {
* char name [20 is];
* int Age;
*}
* {struct Node
Struct Student Data *;
* P * struct Node;
*}
* - Insert the list (tail plug head)
* - release list
* - seeking chain length
* - print list traversal
* - Find the list of elements
* - list element delete
* /

Guess you like

Origin www.cnblogs.com/lijianmin6/p/11014129.html