What do you mean by call by value and call by reference?
While calling a function, when you pass values by copying variables, it is known as “Call By Values.” While calling a function, in programming language instead of copying the values of variables, the address of the variables is used it is known as “Call By References
Is This Answer Correct ? | 0 Yes | 0 No |
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.
What is else syntax in c++?
Copy Linked List using recursive function?
Explain how to initialize a const member data.
Write a c program for binary addition of two 8 bit numbers.
What is the difference between "calloc" and "malloc"?
check whether a no is prime or not.
What is static in c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Explain binary search.
What is the cout in c++?
Explain "passing by value", "passing by pointer" and "passing by reference" ?