Mail Archives: djgpp/1998/12/22/17:05:37
On Tue, 22 Dec 1998 19:14:54 +0100, "Bonifati" <abonifati AT telsa DOT it>
wrote:
Hmm you don't have to ask permission to try these things ;)
Suppose i have this: int array[10];
I usually put a watch on "array" and things work out well. Try this
and watch array :)
see ya!
void main(void)
{
int array[10];
int cc;
cc=0;
while(cc<10)
{
array[cc]=cc; //put a breakpoint here
cc++;
}
cc=0;
}
>I'm an italian student. I have a question about RHIDE. Please answer. Thank
>you !
>
>How can I watch arrays? I now a pointer is equivalent to an array in C,
>but if I want to see an array represented by a pointer variable, let's say
>int *a; of 5 elements, I'm obliged to write (in the "Add to watch list"
>box):
>
>a[0]
>a[1]
>a[2]
>a[3]
>a[4]
>
>Is there a shorter way? (When I define a static array, for example
>int a[5], it is enough writing "a" in the Add to watch list box to watch
>the array)
>
>Antonio Bonifati - Italy
>abonifati AT telsa DOT it << my e-mail!
>
>
>
>
>
>
>
- Raw text -