Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void
- reverse_arr(void* arr[], int size)
- {
- printf("Size of one element is: %d", sizeof(arr[0]));
- } /* ----- end of function reverse_arr(void* arr[]) ----- */
- /*
- * === FUNCTION ======================================================================
- * Name: main
- * =====================================================================================
- */
- int
- main ( int argc, char *argv[] )
- {
- int arr[] = {1,2,3};
- reverse_arr((void*)arr, 3);
- return EXIT_SUCCESS;
- } /* ---------- end of function main ---------- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement