Thread: Returning Arrays

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    32

    Returning Arrays

    I've written a fucntion whose sole return is an array and now cannot seem to figure out how to return this value to a array created in the main function, it keeps on asking for a Lvalue. any ideas on how to return array values into a array in to main function?

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    134
    could you please post your code

  3. #3
    booyakasha
    Join Date
    Nov 2002
    Posts
    208
    you can't really return an array
    but you can return a pointer to an array

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with returning arrays using pointers
    By cuba06 in forum C Programming
    Replies: 9
    Last Post: 11-23-2007, 10:40 AM
  2. Returning Arrays as pointers
    By chinook86 in forum C Programming
    Replies: 7
    Last Post: 04-03-2007, 04:51 PM
  3. Returning arrays from a function.
    By Jaken Veina in forum C Programming
    Replies: 14
    Last Post: 03-21-2005, 06:07 PM
  4. Functions returning char arrays
    By turmoil in forum C Programming
    Replies: 3
    Last Post: 05-27-2003, 01:43 AM
  5. Returning arrays from a function
    By mattbrrtt in forum C Programming
    Replies: 7
    Last Post: 12-14-2001, 08:29 PM