C++ Fundamentals
Call by value vs call by reference
Call by Value
Call by Reference
Copy of variable is passed.
variable itself is passed.
original value not altered.
original value is altered.
Memory insufficient
Memory efficient
Diff between struct and class
Struct
Class
Member of struct is public by default
A grouping of member variables.
Used in OOP for inheritance, polymorphism.
Last updated