fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[]={2,4,6,8,10};
  5. int i;
  6. change(a,5);
  7. for(i=0;i<=4;i++)
  8.  
  9. change(int *b,int n)
  10. {
  11. int i;
  12. for(i=0;i<n;i++)
  13. *(b+1)=*(b+1)+5;
  14. }
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:6:2: warning: implicit declaration of function 'change' [-Wimplicit-function-declaration]
  change(a,5);
  ^
prog.c:9:9: error: expected expression before 'int'
  change(int *b,int n)
         ^
prog.c:10:2: error: expected ';' before '{' token
  {
  ^
stdout
Standard output is empty