Question: The skeletal structure of a C program is shown below. main() 10.52 50); static int a[5] = {10, 20, int *ptmax; int *funct (int *p);

The skeletal structure of a C program is shown below. main() 10.52 50); static int a[5] = {10, 20, int *ptmax; int *funct (int *p); 30, 40, ptmax = funct(a); printf("max-%d", *ptmax ) ; int *funct (int *p) int i, imax, max = O; for (i i max ) max(p i); imax = i; return (p imax); (a) Within main, what is ptmax? (b) What kind of information is returned by funct? (c) What is assigned to ptmax when the function is accessed? (d) What is the purpose of tbe for loop that appears within funct? (e) What value is displayed by the printf statement within main? Compare vour ansvers with thogs s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
