CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Parameter passing mechanism for an array is

A
call by value
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
call by value and call by reference
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
call by reference
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A call by value

Parameter passing mechanism for an array is call by value.

This mechanism is used for passing objects, where a reference to the objected is passed by value.

Parameter passingis the mechanism used to pass parameters to a procedure (subroutine) or function. The most common methods are to pass the value of the actual parameter (call by value), or to pass the address of the memory location where the actual parameter is stored.

The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function. By default, C programming uses call by value to pass arguments. In general, it means the code within a function cannot alter the arguments used to call the function.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon