fork download
  1. #include <stdio.h>
  2. // Function prototypes
  3. float Shrink (int);
  4. float Results (int);
  5.  
  6. int main ()
  7. {
  8. /* variable definition: */
  9. int intValue;
  10. int Shrink;
  11. float Results;
  12.  
  13.  
  14. printf ("Enter a positive Integer\n: ");
  15. scanf("%d", &intValue);
  16.  
  17. // Call the shrink Function
  18. Results = Shrink(intValue);
  19.  
  20. printf("shrink of %d is %f\n",intValue,Results);
  21.  
  22. return 0;
  23. }
  24.  
  25. /* function returning the Square of a number */
  26. double shrink(int Value)
  27. {
  28. return (double)Value/2;
  29. }
  30.  
  31.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
20
1
compilation info
prog.c: In function ‘main’:
prog.c:18:12: error: called object ‘Shrink’ is not a function or function pointer
  Results = Shrink(intValue);
            ^~~~~~
prog.c:10:6: note: declared here
  int Shrink;
      ^~~~~~
stdout
Standard output is empty