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

Explain how do you list a file’s date and time?

621


What is the full form of getch?

587


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2522


What is the role of this pointer?

555


Can we change the value of #define in c?

588






Give differences between - new and malloc() , delete and free() ?

614


Can one function call another?

630


How can I split up a string into whitespace-separated fields?

573


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1456


What is a union?

613


What are two dimensional arrays alternatively called as?

667


What are global variables and how do you declare them?

623


What are the types of data files?

733


What is the difference between printf and scanf )?

597


What is string concatenation in c?

570