views:

36

answers:

2

How can I see data behind a pointer to an array more than the first item in Visual Studio 2008? It would be so useful to see arbitrary amount of items, not just the first one.

+1  A: 

char* p = new char[100];

Type in the Watch window:

p, 100

Alex Farber
+1  A: 

To expand on Alex's answer (and maybe get myself a few more votes :) ), here is the full list of debugger window format specifiers.

mos