C examples for Array:Multidimensional Arrays
Demonstrates the sizes of multidimensional array elements.
#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; }