Card 31 / 67: choose the proper function to compute the cubic value of any input integer n:
A)
int cube(void) { return (n * n * n) ; }
B)
int cube(int n) { return (n * n * n) ; }
C)
void cube(int n) { return (n * n * n) ; }
Answer:
B) int cube(int n) { return (n * n * n) ; }
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |