SyntaxFix
Write A Post
Hire A Developer
Questions
You can use memset with the size of the struct:
memset
struct x x_instance; memset (&x_instance, 0, sizeof(x_instance));