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; ! }

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!