Skip to main content

Command Palette

Search for a command to run...

Why you can use static keyword without initializing it to zero

Updated
1 min readView as Markdown
Why you can use static keyword without initializing it to zero
X

"I am currently a Software Engineering student at ALX. I'm passionate about technology and enjoy conducting research to find answers on my own. I have a natural inclination to ask 'WHY' more often than 'HOW'.

"While working on projects at ALX, I have acquired a wealth of interesting and diverse knowledge about software engineering and computer science in general. Therefore, I needed a place to store and save all this information, allowing me to refer back to it whenever I forget."

Static variables

In C, static char variables are initialized to '\0', which is the null character. This is different from a null pointer, which is represented by the value NULL. static int are initialized to 0 and static char pointers are initialized to NULL

More from this blog

PERSONAL BLOG

110 posts

Use the search button to search for a specific topic or keyword *all posts are updated on the go*