Quickly read "Essential C " today's hot two chapters. Some points:
In order to avoid memory replication without modifying the parameter value, you can use the inventory of Const modification. When using the Pointer as a function parameter, you must check its value non-zero. If you use Reference as a parameter, you don't have to check because of its necessity represents an object. In general, unless you want to change the value of the parameters in the function, do not use the address. The address is mainly used by Class Object.
The built-in type object, if defined in the FILE Scope, it must be initialized to 0, but if it is defined within the LOCAL Scope, it will not be initialized unless the initial value is specified, otherwise it will not be initialized.
DELETE objects do not need non-zero checks, the compiler will do this. (?)
Use local static variables to replace global variables ---------------------------------------- ---------------------------------- 2005.02.16 Quickly browse today. Basically, end the book. Refer to "C Primer" after more detailed content