Saved Bookmarks
| 1. |
Explain Why Cannot Arrays Be Passed By Values To Functions? |
|
Answer» Because in C when you say the name of the array it means the address of the first element. In this when you call the function by passing the argument a actually &a[0](address of first element) gets passed. Hence it is IMPOSSIBLE to pass by value in C.
Because in C when you say the name of the array it means the address of the first element. In this when you call the function by passing the argument a actually &a[0](address of first element) gets passed. Hence it is impossible to pass by value in C.
|
|