Pass By value,Pass by reference
- sondip poul singh
- Feb 13, 2019
- 1 min read
check this fantastic blog:(https://www.haroldserrano.com/blog/passing-by-value-vs-passing-by-reference-in-c)
pass by value means pass values in function whereas pass by reference means passing the address. the reason behind using reference because it allows us to change the contents directly.And obviously we use pointer to pass the address.
Komentar