Static and extern are storage classes in C which defines scope and life-time of a variable. Similar to any variables in C, we can use these keywords with pointers for different use cases.
Table of content:
Static pointers in C/ C Extern pointers in C/ C
Let us get started.
Static pointers in C/ C
Static variables once initialized exists until the termination of the program. These variables holds their value even after they are out of their scope. Once declared and initialized they are no...
Published on September 05, 2021 12:55