Can structures be passed to the functions by value?
Why cannot arrays be passed by values to functions?
Please explain.
|
Ambitious contributor
|
|
| 30Aug2008,20:37 | #2 |
|
Yes, you can pass a struct by value, but it is rarely done.
Presumably arrays cannot be passed by value for two reasons:
and pass it by value that way! |
|
Go4Expert Member
|
|
| 2Sep2008,00:08 | #3 |
|
can u give me an example for both the cases.
thanx a lot. |
