|
|
|
#include <stdio.h>
main(argc, argv)
int argc;
char *argv[];
{
int i;
int list[5];
int matrix[5][5];
printf("sizeof(i): %3u\n", sizeof(i));
printf("sizeof(list): %3u\n", sizeof(list));
printf("sizeof(matrix): %3u\n", sizeof(matrix));
printf("Address of list[0]: %8u\n", &list[0]);
printf("Address of list[1]: %8u\n", &list[1]);
printf("Address of matrix[0][0]: %8u\n", &matrix[0][0]);
printf("Address of matrix[2][3]: %8u\n", &matrix[2][3]);
list[0] = 123;
printf("list[0] = %d\n", list[0]);
matrix[4][5] = 456;
printf("list[0] = %d\n", list[0]);
} |
|
|
|
|