views:

71

answers:

1

While debugging a C program in Visual Studio 2008, is it possible somehow to get the size of variables (in bytes)?

P.D. Of course I can print sizeof(var) for each of them

+5  A: 

You can use the Immediate Window to evaluate sizeof(...) or any other expression while debugging.

chakrit