passing arrays of structs :(

This is a discussion on passing arrays of structs :( within the C Programming forums, part of the General Programming Boards category; the definition of the struct will need to be global, and usually above your function prototypes...

  1. #16
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    the definition of the struct will need to be global, and usually above your function prototypes
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  2. #17
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    In very short testing, no - I couldn't do it without the definition of the struct, being above the first reference to the name of the struct (in the function prototype).

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

Similar Threads

  1. More trouble passing arrays
    By Rad_Turnip in forum C Programming
    Replies: 2
    Last Post: 04-04-2006, 08:11 PM
  2. Replies: 6
    Last Post: 04-26-2004, 10:02 PM
  3. Help Understanding Passing Arrays To Functions
    By jrahhali in forum C++ Programming
    Replies: 7
    Last Post: 04-10-2004, 02:57 PM
  4. passing structs to functions?
    By Neildadon in forum C++ Programming
    Replies: 1
    Last Post: 12-13-2002, 03:31 PM
  5. passing arrays to functions
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 03-01-2002, 02:18 PM

Tags for this Thread


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