Question:What are passing arguments by reference and passing arguments by value? 

Answer By reference: When we pass an argument by reference, we pass a pointer to the value in memory. The function operates on the argument. When a function changes the value of an argument passed by reference,the original value changes.By value: When we pass an argument by value, we pass a copy of the value in memory. The function operates on the copy. This means that when a function changes the value of an argument passed by value, the effect is local to that function; the copy changes but the original value in memory is not affected. 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 789
What are passing arguments by reference and passing arguments by value?
Copyright © 2024. Powered by Intellect Software Ltd