Advertisement
dhruvag2000

array_rev()

Mar 30th, 2022
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.     void
  5. reverse_arr(void* arr[], int size)
  6. {
  7.     printf("Size of one element is: %d", sizeof(arr[0]));
  8. }       /* -----  end of function reverse_arr(void* arr[])  ----- */
  9.  
  10.  
  11. /*
  12.  * ===  FUNCTION  ======================================================================
  13.  *         Name:  main
  14.  * =====================================================================================
  15.  */
  16.     int
  17. main ( int argc, char *argv[] )
  18. {
  19.     int arr[] = {1,2,3};
  20.     reverse_arr((void*)arr, 3);
  21.     return EXIT_SUCCESS;
  22. }               /* ----------  end of function main  ---------- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement