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