fork download
  1. #include <stdio.h>
  2.  
  3. void foo(int ar[10]){
  4. }
  5.  
  6. int main(void) {
  7. int arr[10];
  8. int arr2[3];
  9. foo(arr, arr2);
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:9:2: error: too many arguments to function 'foo'
  foo(arr, arr2);
  ^
prog.c:3:6: note: declared here
 void foo(int ar[10]){
      ^
stdout
Standard output is empty