Demonstrates the sizes of multidimensional array elements. - C Array

C examples for Array:Multidimensional Arrays

Description

Demonstrates the sizes of multidimensional array elements.

Demo Code

#include <stdio.h>

int multi[2][4];/*from ww  w  .java  2 s . co m*/

int main( void )
{
   printf("\nThe size of multi = %u", sizeof(multi));
   printf("\nThe size of multi[0] = %u", sizeof(multi[0]));
   printf("\nThe size of multi[0][0] = %u\n", sizeof(multi[0][0]));

   return 0;
}

Result


Related Tutorials