What is the difference between pass by reference and pass by
value?
Answer Posted / ganesh
in pass by referce function can access original memory
location of variable so can access value while in case of
pass by value fuction can copy the value of variable to the
prototype of its kind of variable so calling funcion can
access the prototype variable but not the direct original
variable.
| Is This Answer Correct ? | 16 Yes | 9 No |
Post New Answer View All Answers
What is an interface in oop?
What is an example of genetic polymorphism?
How do you define social class?
What are oops methods?
What do you mean by variable?
What causes polymorphism?
What language is oop?
Write a program to sort the number with different sorts in one program ??
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What are the two different types of polymorphism?
What is encapsulation and abstraction? How are they implemented in C++?
What is overloading and its types?
What is object and class in oops?
Why do we need oop?