PDA

Click to See Complete Forum and Search --> : Pointers


Andreex
Mar 31st, 2002, 01:34 PM
Hello... I studied pointers long time ago and I am trying to remeber how to do the following.

I have 1 array of strings for example. I want to pass the address of the first element with a pointer and then read the following elements.... could somebody post a little example?

Thank you

jim mcnamara
Mar 31st, 2002, 03:54 PM
This?



char *buf;
char *t ="This is a string";
buf=t;
while(*buf != 0x00) printf("%c",*buf++);
printf("\n");

Andreex
Apr 1st, 2002, 08:23 PM
thanks Jim... I will check it out in one sec! :)

Andreex
Apr 1st, 2002, 09:54 PM
Thanks! It was just what I was looking for!