Question: typedef struct { int x, y, z; char c; ! } bunch_t; void WorkwithBunch(bunch_t *inputBunch_p) // later inside the main: bunch_t myBunch = {1, 2,

typedef struct { int x, y, z; char c; ! } bunch_t; void WorkwithBunch(bunch_t *inputBunch_p) // later inside the main: bunch_t myBunch = {1, 2, 3, '7'}; bunch_t *bunchPtr = {myBunch; // How should we call WorkwithBunch? WorkwithBunch(bunchptr); // option 1 WorkwithBunch(*bunchptr); // option 2 WorkwithBunch(&bunchPtr); // option 3 Consider the above snippet. What option is the correct way to call the WorkwithBunch function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
