Search:

Type: Posts; User: johnjrgs

Search: Search took 0.00 seconds.

  1. int main() { char array[100]; char...

    int main()
    {
    char array[100];
    char *ptr;
    ptr = &array[0];
    int i, j;
    fgets(ptr, 100, stdin);
    printf("%s", array);
    getch();
    return 0;
  2. How do I use getchar and pointers at the same...

    How do I use getchar and pointers at the same time?
  3. I still am not sure what to do here though.. any...

    I still am not sure what to do here though.. any ideas?

    Thanks adak, I declared a ptr to the array I'm using atm. Not sure what to do after that though.

    May I ask where is the data after the...
  4. How to print everything you type till you hit enter using POINTERS.

    I think I need to use


    while(input[0]!='\n'){
    scanf("%s", input)
    printf("%s", pointerhere);
    }

    basically we were asked to make a program that will print everything before the user hits...
Results 1 to 4 of 4