building a tree - The Off Topic Babble

This is a discussion on building a tree - The Off Topic Babble within the C Programming forums, part of the General Programming Boards category; >all arrays shall now be referenced with the array name positioned after the integer Let's try it! Code: #include <stdio.h> ...

  1. #16
    Rabble Rouser Slacker's Avatar
    Join Date
    Dec 2005
    Posts
    116
    >all arrays shall now be referenced with the array name positioned after the integer
    Let's try it!
    Code:
    #include <stdio.h>
    
    int main ( void )
    {
      const char *word[] = {
        "Some","words","and","stuff"
      };
      int i;
    
      for ( i = 0; i < 4; i++ )
        printf ( "%s ", i[word] );
      printf ( "\b.\n" );
    
      return 0;
    }
    Eh, whatever works for you is good for me.

  2. #17
    aoeuhtns
    Join Date
    Jul 2005
    Posts
    581
    Don't tell people! They're supposed to think I'm joking. ;-)

  3. #18
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It's all in the way you look at it, isn't it?
    Code:
    int numbers[ SIZE ];
    This is an array of numbers. There are SIZE many of them. You wouldn't say "This is an array of number." I wouldn't.

    I can lie, but I'm not when I say, it's a pretty stupid argument.


    Quzah.
    Hope is the first step on the road to disappointment.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  2. Binary Tree, couple questions
    By scoobasean in forum C Programming
    Replies: 3
    Last Post: 03-12-2005, 08:09 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 10:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21