Explain "passing by value", "passing by pointer" and
"passing by reference" ?

Answer Posted / sanish joseph

In Pass by value,copy of the value is passed, but in pass by
reference the address of the variables are passed as a
reference.pointer are variables storing the address of
another variable so it can be used as a pass by referece,
den it s teamed "passing by pointer".

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there a c++ certification?

595


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

1826


Can we change the basic meaning of an operator in c++?

649


What is a singleton class c++?

540


Is c++ fully object oriented?

547






Difference between strdup and strcpy?

642


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

790


To which numbering system can the binary number 1101100100111100 be easily converted to?

599


What is the difference between containment and delegation?

698


What is object in c++ wikipedia?

565


What is singleton class in c++?

585


Explain data encapsulation?

600


What is a literal in c++?

558


What is unary operator? List out the different operators involved in the unary operator.

579


What are move semantics?

667