Name: Anonymous 2006-06-17 4:08
I learned in a different language, so I need to ask these.
1) Arrays
If you pass an array as a method parameter, do you pass pointers to data (so any changes made to the array in the method affect the array without having to return any values) or actual data?
2) Arrays & methods again
When declaring a method you want to recieve an array as a parameter for, do you need to declare Method(int array[##]) or just Method(int array)?
3) Strings
There are no string-variables in C++, only arrays of characters? Again, I learned in a different language.
1) Arrays
If you pass an array as a method parameter, do you pass pointers to data (so any changes made to the array in the method affect the array without having to return any values) or actual data?
2) Arrays & methods again
When declaring a method you want to recieve an array as a parameter for, do you need to declare Method(int array[##]) or just Method(int array)?
3) Strings
There are no string-variables in C++, only arrays of characters? Again, I learned in a different language.