Passing structure to a function in C:
If a structure is passed to a function of a C program, then ?
i. it will pass reference to that structure to the function.
ii. it will make one more copy of that structure in the called function's stack.
iii. it is not allowed to pass structures in c.
iv. that structure will be kept in shared memory and both called function and calling function shares the same structure. but all this things will be taken care by c. So programmer don't need to worry.
it will make one more copy of that structure in the called function's stack.
Back To Top