C passes By value or By reference?

Answer Posted / rohit

it depends on us how to pass a value
because ,c can pass by both value and reference

by valu means actual val of variable ia passed

by reference address of the required value is passed

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are near, far and huge pointers?

642


Should a function contain a return statement if it does not return a value?

592


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

643


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

575


What is meant by keywords in c?

614






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

1446


What is huge pointer in c?

581


Explain the advantages and disadvantages of macros.

620


What is the use of a β€˜β€™ character?

582


What are void pointers in c?

574


Can i use β€œint” data type to store the value 32768? Why?

754


What does main () mean in c?

612


Between macros and functions,which is better to use and why?

1565


What is void main () in c?

722


What is the use of static variable in c?

593