fork download
  1. #include<stdio.h>
  2. void display(int a[],int n);
  3. int main(void){
  4. int b[5]={1,2,3,4,5};
  5. int size=sizeof(b)/sizeof(b[0]);
  6. display(b,size);
  7. return 0;
  8. }
  9. void display(int a[],int n){
  10. for(int i=0;i<n;i++){
  11. printf("%d ",a[i]);
  12. }
  13. printf("\n");
  14. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
1 2 3 4 5