pass by value vs pass by reference in C++ programming # በአማረኛ

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • Passing value or data in function use two methods which are pass by value and pass by reference. Call by value directly copy the value of parameters and dose not modifies the original value because it created in locally and destroy when it leaves from the function. However, pass by reference have two-way communication and access the value of parameter by passing the address location and then copy the value based on its address. So, it modifies or changes the original value of the function.

КОМЕНТАРІ • 5