| | |
returning arrays from functions
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 164
Reputation:
Solved Threads: 5
there is a need and a reason to return arrays and it can be done, you just return a pointer to its first address. If what you meant was an array return by value, i.e. a copy of the array then yes this never happens in c++. arrays are always treated as reference types.They are not copied into funcs or out of them.
![]() |
Similar Threads
- Hey Just started new topic with arrays, and having some trouble please help (C++)
- Using functions and arrays to create a program for grades (C++)
- three dimensional arrays (PHP)
- Passing arrays of objects to functions (C++)
- Class Passing and Returning Arrays (Java)
Other Threads in the C++ Forum
- Previous Thread: Help w/ for loop.
- Next Thread: Using Cout or printf commands
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





