Find the error in each of the following program segments and explain how to correct it:
a) double cube( float ); // function prototypecube( float number ) // function definition{return number * number * number;}
b) int randomNumber = srand();
c) double y = 123.45678;int x;x = y;printf( "%f\n", (double) x );
d) double square( double number ){double number;return number * number;}
e) int sum( int n ){if ( 0 == n ) {return 0;}else {return n + sum( n );}}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.