Question: Give the answer and explain, I will thumbs up if the explanation is well done. 1. Which best describes the type of x in the

Give the answer and explain, I will thumbs up if the explanation is well done.Give the answer and explain, I will thumbs up if the explanation

1. Which best describes the type of x in the following C declaration? int (*x[10]) (char *); (a) a pointer to a function that takes an array of 10 strings and returns an int (b) an array of 10 pointers to functions that take strings and return ints (c) a pointer to a function that takes a string and returns an array of 10 ints (d) a function that takes an array of 10 strings and returns an int 2. Consider the following C declarations: struct si int x, y; }; struct s sarr [20]; Which of the following expressions is semantically equivalent to "sarr[10].x"? (a) (sarr + 10)-> (b) (&sarr + 10).x (c) *(sarr + 10 + sizeof(struct s)).x (d) ((char *)sarr + 10 + sizeof(struct s))->x

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!