what is call by value and call by reference
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What are external variables in c?
Why is main function so important?
YBJBU6
What is p in text message?
WHAT IS MEANT BY LIFE?
Determine if a number is a power of 2 at O(1).
who is the editor of 'pokemon'?
Write a pro-gramme to determine whether the number is even or odd?
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
What is a stream?
Why c is called procedure oriented language?
Table of Sudoku n*n