fork download
  1. #include <stdio.h>
  2.  
  3. //引数の二乗を返す関数
  4. int square(int x){
  5. return x*x;
  6.  
  7. }
  8. //main関数
  9. int main(void) {
  10. int a;
  11. a=2;
  12. printf("%d",square(square(a)));
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
16