Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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))->xStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started