(Function Headers and Prototypes) Perform the task specified by each of the following statements:
a) Write the function header for function zero that takes a long integer array parameter big Integers and does not return a value.
b) Write the function prototype for the function in part (a).
c) Write the function header for function add 1 And Sum that takes an integer array parameter one Too Small and returns an integer.
d) Write the function prototype for the function described in part (c).
Solution:
a)
a) Write the function header for function zero that takes a long integer array parameter big Integers and does not return a value.
b) Write the function prototype for the function in part (a).
c) Write the function header for function add 1 And Sum that takes an integer array parameter one Too Small and returns an integer.
d) Write the function prototype for the function described in part (c).
Solution:
a)
void zero (long int * bigIntegers);b)
void zero(long int *);c)
int add1AndSum (int * oneTooSmall);d)
int add1AndSum (int *
Post A Comment:
0 comments: