Results 1 to 4 of 4

Thread: Pointers

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843

    Pointers

    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
    "The difference between mad and genius is the success"

  2. #2
    jim mcnamara
    Guest
    This?

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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    thanks Jim... I will check it out in one sec!
    "The difference between mad and genius is the success"

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843
    Thanks! It was just what I was looking for!
    "The difference between mad and genius is the success"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width