开发者

Is it possible to get the size of a variable in Visual Studio?

开发者 https://www.devze.com 2023-01-17 12:30 出处:网络
While debugging a C program in Visual Studio 2008, is it possible somehow to get the siz开发者_StackOverflow社区e of variables (in bytes)?

While debugging a C program in Visual Studio 2008, is it possible somehow to get the siz开发者_StackOverflow社区e of variables (in bytes)?

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消