#include /* +------+------+------+------+ n[4] = | n[0] | n[1] | n[2] | n[3] | +------+------+------+------+ */ int main() { //int n[10]; // random hodnoty v pameti, ale prostor mam alokovany, takze je to v "poradku" //int n[10] = {0,0,0,0,0,0,0,0,0,0}; // definované hodnoty int n[] = {0,0,0,0,0,0,0,0,0,0}; for(int i = 0; i < 10; i++) { printf("[%d]: %d\n", i, n[i]); } printf("Filing\n"); for(int i = 0; i < 10; i++) { n[i] = i + 100; } for(int j = 0; j < 10; j++) { printf("n[%d] = %d\n", j, n[j]); } printf("= VELIKOSTI =\n"); printf("sizeof(n): %zu\n", sizeof(n)); printf("sizeof(n[0]): %zu\n", sizeof(n[0])); printf("sizeof(int): %zu\n", sizeof(int)); printf("sizeof(n)/sizeof(n[0]): %zu\n", sizeof(n)/sizeof(n[0])); printf("sizeof(n)/sizeof(int): %zu\n", sizeof(n)/sizeof(int)); return 0; }