C language programming considerations

The difference between (1) the definition of the structure

		struct   Student  
    {  
    		int   a;  
    }stu1;//stu1是一个变量  
    
    typedef   struct   Student2  
    {  
    		int   a;  
    }stu2;//stu2是一个结构体类型=struct Student  

For stu1, directly stu1.a call, you need to stu2 stu2 s2, calling s2.a.

The difference between dynamic and static space space

Dynamic Space: Space generated runtime, manually assign / recovery
static spatial: compiling the function when the determined space, automatic allocation / recovery

Published 16 original articles · won praise 0 · Views 942

Guess you like

Origin blog.csdn.net/qq_44157281/article/details/103448806