what is call by value and call by reference

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between class and structure?

859


What is the difference between strcpy() and memcpy() function in c programming?

871


Why double pointer is used in c?

797


What does calloc stand for?

862


What is page thrashing?

871


Do variables need to be initialized?

827


Why c is faster than c++?

820


What is the maximum no. of arguments that can be given in a command line in C.?

915


Which of these functions is safer to use : fgets(), gets()? Why?

895


What is adt in c programming?

864


any "C" function by default returns an a) int value b) float value c) char value d) a & b

884


Can you write the function prototype, definition and mention the other requirements.

909


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

2089


Write a program to find factorial of a number using recursive function.

884


what is a function method?give example?

2146