(Solved): a) The skeletal structure of a C program is shown below. void funct (int p ); void main(void) \{ ...
a) The skeletal structure of a C program is shown below. void funct (int ?p ); void main(void) \{ static int a[5]={1,2,3,4,5}; funct (a); \} void funct (int *p) \{ int i,sum=?; for (i=2;i<5;++i) sum +=?(p+i); printf("sum=\%d", sum); return; \} (i) What kind of argument is passed to funct? (2 marks) (ii) What kind of information is returned by funct? (2 marks) (iii) What information is actually passed to funct when it is called from main? (2 marks) (iv) What is the purpose of the for loop that appears in funct? (2 marks) (v) What value is displayed by the printf statement in funct?