Call-By-Value and Call-By-Referenceby@supernerdd007
592 reads
592 reads

Call-By-Value and Call-By-Reference

by Rohan Rai3mFebruary 22nd, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

There are two ways to pass data to the function in C/C++. Pass-By-Value and Pass-by-Reference are equally important features of C/CC++. The time complexity of programs using pass-by value and pass-By reference is almost similar. When to use Pass-BY-Value is when we want to calculate the value of a particular function without modifying the values of arguments passed. To avoid bugs caused due to memory stack issues, use pass-via-reference to update a variable's value.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Call-By-Value and Call-By-Reference
Rohan Rai HackerNoon profile picture
Rohan Rai

Rohan Rai

@supernerdd007

Tech Blogger and Content Marketer

Learn More
LEARN MORE ABOUT @SUPERNERDD007'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Rohan Rai HackerNoon profile picture
Rohan Rai@supernerdd007
Tech Blogger and Content Marketer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!