2 2 votes What type of parameter passing mechanism (call-by-value, call-by-reference, call-by-name, or-by-value result) is the following sequence of actions trying to implement for a procedure call $P (A[i])$ where P (i:integer) is a procedure and A is an integer array? Is the implementation correct? Explain and correct it if necessary. You are supposed to make only small changes Create a new local variable, say z. Assign to z the value of A[i]. Execute the body of P using z for A[i] Set A[i] to z. Programming in C gate1992 parameter-passing programming normal out-of-gatecse-syllabus + – Kathleen 1.9k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
4 4 votes implement the call by value result parameter passing technique as value is first copied all changes done in local variable and then again value copied in actual variable hkara657 answered Jan 12, 2016 hkara657 comment Share Follow 0 reply Please log in or register to add a comment.