SHARE
TWEET

Untitled

a guest Jun 18th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. void f(int arr[]) // == void f(int *arr)
  4. {
  5.     size_t size = sizeof(arr);
  6.  
  7.     printf("Size in f(): %d\n", size);
  8. }
  9.  
  10. void main()
  11. {
  12.     int arr[] = { 10, 20, 30 };
  13.     size_t size = sizeof(arr);
  14.  
  15.     printf("Size in main(): %d\n", size);
  16.     f(arr);
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top