/Data-Structures-and-Algorithms

Repository for all C/C++/Java DSA programmes.

Primary LanguageC++Apache License 2.0Apache-2.0

DSA

mainMeM

Uses of Pointers(lies in Stack memory)-
1)Accessing Heap memory(use malloc to access Heap mem)
2)Accessing other external Resources
3)Parameter Passing

REFERANCE IS AN ALIAS GIVEN TO A VARIABLE (USE & OF REFERENCING) //Used in C++ only

Call by Addrees uses arrow operator and Call by value uses dot operator

Array as Parameter
pointerasParameter

Array cant be passed as CALL BY VALUE but only by CALL BY ADDRESS in parameter passing