Hi,
I'm trying to execute a C program in Visual Studio.Net 2003 environment and seem to have a problem with the watch window in the IDE. I wrote a simple code like:
when attempting to execute this code in debug mode, if i try to view the contents of arr[0][1] in the watch window, I get the following error messageCode:#include<stdio.h> main() { int arr[2][2]={ {2,3}, {3,5}, }; printf("%d",arr[0][1]); }
arr[0][1] error: index '0' out of bound for pointer/array 'arr'
The printf statement prints the correct value of 3 for arr[0][1]. I was wondering what I'm missing in the watch window.
Appreciate your help.