In Win32 programming a handful of POD structs is used. Those structs often need to be zeroed out before usage.
This can be done by calling memset()/
memset()
in c++11:
struct A { int x = 10; int y = 100; int z = 0; };
old style c++
struct A { int x; int y; int z; A() : x( 10 ), y( 100 ), z( 0 ) {} //constructor };