fork download
  1.  
  2. #include<stdio.h>
  3.  
  4. void fun(int arr[]){
  5. int i;
  6. int arr_size = sizeof(arr)/sizeof(arr);
  7. for(i=0;i<arr_size;i++){
  8. printf("%d",arr[i]);
  9. }
  10. }
  11.  
  12. int main(){
  13. int i;
  14. int arr[4] = {12,24,36,48};
  15.  
  16. fun(arr);
  17.  
  18. }
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
12