Perform the task specified by each of the following statements:
a) Write the function header for a function called exchange that takes two pointers to double-precision, floating-point numbers x and y as parameters and does not return a value.
b) Write the function prototype for the function in part (a).
c) Write the function header for a function called evaluate that returns an integer and that takes as parameters integer x and a pointer to function poly. Function poly takes an integer parameter and returns an integer.
d) Write the function prototype for the function in part (c).
e) Write two statements that each initialize character array vowel with the string of vowels,"AEIOU".
a) void exchange( double *x, double *y )
b) void exchange( double *, double * );
c) int evaluate( int x, int (*poly)( int ) )
d) int evaluate( int, int (*)( int ) );
e) char vowel[] = "AEIOU";
char vowel[] = { 'A', 'E', 'I', 'O', 'U', '\0' };
You might also like to view...
A variable whose meaning is confined to an object of a class is called:
a. instance variable b. local variable c. global variable d. none of the above
Look up how to do an insertion sort. Write a method to do a insertion sort of an array of names. See the StringArraySorter class in the directory bookClass- esFinal.
What will be an ideal response?
Each parameter must specify both a(n) ________ and a(n) _____________ .
Fill in the blank(s) with the appropriate word(s).
Arrays cannot be initialized by assigning values to each element.
Answer the following statement true (T) or false (F)