fork download
  1. #include <stdio.h>
  2. void foo(register int *s,unsigned size) {
  3. for(unsigned i=0;i<size;i++)
  4. printf("%d ",s[i]);
  5. }
  6. int main(void) {
  7. int s[5]={0};
  8. unsigned size=sizeof(s)/sizeof(s[0]);
  9. foo(s,size);
  10. }
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
0 0 0 0 0