25#25
In the simplest case this will work fine and achieve what you expect (initialize all variables to 0). Though, if a virtual function is declared anywhere in the class hierarchy then you would be doing something very bad. The call to memset() will overwrite the virtual function table for the object because sizeof() includes the virtual function table in its calculation. This will create all kinds of strange problems. If you really want to do something like this, a somewhat safer approach would be:
26#26
This way all the variables that are declared between the start and end markers are set 0. This is still kind of hokey though. You probably should not do it, but it is worth noting so that you do it safely.