/* * SelfTest1 * Chapter 8 * By John Stile */ 1) Is the following a header or a prototype and what information does it convay? int fxxx(void) Answer: Header for function fxxx: takes nothing, returns an int. Has not semicolon at the end. 2) Correct the following header and fefinition: Bad header Fixed header void fyy(void); int fyy(void) { printf("Welcome to class.\n"); printf("Welcome to class.\n"); return (0); return (0); } 3) What are each of the following and what information does each convay? a) float fabc(int, int, float); // proto:takes 2 ints, 1 float, returns flaot b) int fmno(int ii, int dd, float rr) // header: takes 2 ints & assign to ii and dd, // takes 1 float asigned to rr, // returns int c) return(tt*dd*rr); // multipy tt dd and rr // returns result to calling function 4) The following lines are in main of a program: aa=6; bb=7; cc=fxyz(aa,bb); The following lines are in the body of the funciton fxyz; { return (mm-nn); } a) What is the prototype for function fxyz? int fxyz(int, int); b) What is the header for function fxyz? int fxyc(int mm, int nn)