C programming....one


#1

in c we use pass by value or pass by refernece? explain


#2

in c, we can use both pass by value and pass by reference depending upon their necessity. pass by value means you are making a copy of the actual parameter’s value which is passed to function. Use pass by value when when you are only using the parameter for some computation, not changing its value in actual parameters. pass by reference is the copy of address of actual parameters. Use pass by reference when you need to update the actual content of the actual parameter.


#3

but in most of the text it is written that pass by value is in c and not pass by reference…