Search:

Type: Posts; User: tabstop

Search: Search took 0.13 seconds.

  1. So now that you know how to print 10 items on a...

    So now that you know how to print 10 items on a line, do so repeatedly. Or alternatively, print each element in a loop, and decide based on [i] when to print a new-line.
  2. Really? Are you sure you just didn't recognize...

    Really? Are you sure you just didn't recognize it when you saw it?


    for (int i = 0; i < 10; i++) {
    printf("%d ", i);
    }
  3. What makes you think this line printf("%7i\t...

    What makes you think this line


    printf("%7i\t %7i\t %7i\t %7i\t %7i\t %7i\t %7i\t %7i\t %7i\t %7i\n", &ary_nbr[i]);

    is even a little bit legal?
  4. Don't use \t. If you let %i alone, it will skip...

    Don't use \t. If you let %i alone, it will skip all whitespace (spaces, tabs, and new-lines) without any work on your part.
Results 1 to 4 of 4