0
What is error in the following code?
#include <stdio.h> int cube (int num); int (main) { int x, result; x=3; result = cube (x) ; printf("%d cubed is %d\n",x,result); return 0; } int cube (int num){ int y; y = num*num*num; return(y); }
1 Odpowiedź
+ 1
int main()
return y;