what is the difference between call by value and call by
reference?

Answer Posted / m.karthiga

in call by value the changes do not affect the value of a
variable because value is passed.but call by reference
should affect the value of a variable because address is
passed

Is This Answer Correct ?    16 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define structure?

553


What is the sizeof () a pointer?

540


What are the advantages of external class?

584


Are local variables initialized to zero by default in c?

539


Who developed c language?

630






What is the difference between the = symbol and == symbol?

615


Subtract Two Number Without Using Subtraction Operator

343


What is call by reference in functions?

548


What is a union?

601


Explain spaghetti programming?

676


what are the 10 different models of writing an addition program in C language?

1425


What is operator precedence?

635


What are dangling pointers in c?

629


How do you print only part of a string?

602


What is difference between scanf and gets?

601