Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Know the address of a variable in Visual Studio

I am starting to learn to debug C programs with Visual Studio 2008. When running in debug mode, how is it possible to know the address of a initialized variable? I choose to watch it but can only know about the value. Thanks

like image 505
Open the way Avatar asked Sep 21 '10 09:09

Open the way


1 Answers

You can type in a & in front of the variable, which will display it's address.

like image 92
xtofl Avatar answered Oct 23 '22 13:10

xtofl