quickie question

This is a discussion on quickie question within the C Programming forums, part of the General Programming Boards category; how to you store integers in structured array?...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    27

    quickie question

    how to you store integers in structured array?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Code:
    #define N some_arbitrary_number
    
    int array[N];
    
    array[i] = value; /* Store */
    value = array[i]; /* Retrieve */
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  2. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  3. quickie pointer question
    By 1337speaker in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2003, 05:55 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 12:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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