C passes By value or By reference?

Answer Posted / red dustbin

C passes only by value. When passing a pointer, the pointer
is passed by value. This is equivalent to passing by
reference but it is the progammer's choice to pass the
pointer instead of the object itself.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is size of union in c?

578


What is data structure in c and its types?

593


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

644


What is scope rule of function in c?

546


Is void a keyword in c?

573






What is LINKED LIST? How can you access the last element in a linked list?

630


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1478


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1588


Can a pointer be volatile in c?

534


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

623


What is the difference between exit() and _exit() function?

599


Why cant I open a file by its explicit path?

593


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

649


Can a void pointer point to a function?

566


what is the structure pointer?

1643