Ok, ive been given a sample test and this is really confusing me could someone explain how this works?
Many Thanks
Jeev
Code:Q9 What is the signature of the following function definition? int orange( int counter ) { if ( counter > 5 ) { counter = counter – 1; return ( orange( counter – 1 ) + counter ); } else { return 2; } } A void orange( int ); B int orange( int ); C void orange( counter ); D int orange( void ); Q10 Given the function definition in Question 9, what is the output of the following C program? int main( void ) { printf( “%d”, orange( 9 ) ); } A 8 B 12 C 16 D 20