title: Array as parameter doesn't maintain size
body: <p>I'm testing <code>sizeof</code> macro in C/C++.</p>
  
  <p>My main code is as follows</p>
  
  <pre><code> void ShowSize(int RA[]);
  
   main()
   {
       int MyRA[10] = {1,2,3,4,5,6,7,8,9,0};
  
       printf("size of MyRA is %d\n", sizeof(MyRA) );
  
       ShowSize(MyRA);
   }
  
   void ShowSize(int RA[])
   {
       printf("Size in here is different %d\n", sizeof(RA));
   }
  </code></pre>
  
  <p>I would have thought the size is the same in both cases but it is not... </p>
  
  <p>How can I make both printf statements show the same value? I've tried dereferencing the value inside the function since it's a pointer, right, but my values are not consistent.</p>