what is call by value and call by reference

Answers were Sorted based on User's Feedback



what is call by value and call by reference..

Answer / kalyani.p.v

call by value:The called function sends its value as
argument to calling function.
Call by reference:The calling function sends address of
variable to the called functin.

Is This Answer Correct ?    16 Yes 3 No

what is call by value and call by reference..

Answer / vignesh1988i

CALL BY VALUE :
this means whenever ur arguments in the function contains only values without passing any addresses is called as call by value..

CALL BY REFERENCE :
this means that whenever u pass an address as an arragument when u call an function , that is called as reference by call


thank u

Is This Answer Correct ?    9 Yes 1 No

what is call by value and call by reference..

Answer / bharat

call by value means u call function with argument as value
of variable.
and
call by reference means u call function with argument as
address of variable

Is This Answer Correct ?    2 Yes 0 No

what is call by value and call by reference..

Answer / rina

function is call the value called the call by values
and the function call the address called the call by
refrence....

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).

1 Answers  


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

1 Answers  


how to find binary of number?

2 Answers  


How can I read/write structures from/to data files?

0 Answers  


What is the difference between new and malloc functions?

0 Answers   InterGraph,


3.write a simple program that will output your name,phone number,e-mail address,and academic major on separate lines 1.create an account and a personal directory for your work b.find out how to create a subdirectory on your system.create one called info c.you will use a text editor to type in your programs and data files.some C systems have a built in text editor;others do not.Find out what text editor you will be using and how to access it.create a text file(not a program) containing your name ,address,and telephone number on separate lines.Next,write the brand of computer you are using and the name of the text editor.Then write a paragraph that describes your past experience with computers.save this file in your info directory. d. find out how to print a file on your system .print out and turn in the file you created in (c).

0 Answers   TCS,


How would you rename a function in C?

0 Answers   Tech Mahindra,


Write a program to print the prime numbers from 1 to 100?

7 Answers  


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

0 Answers  


what will be the out put. #include<stdio.h> void main() { printf("Output:"); printf(1+"vikashpatel"); }//output: ikashpatel

1 Answers   V2 Solutions,


Why do we use int main?

0 Answers  


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1 Answers   IBM,


Categories