On a 64 bits architecture, what does the following code print ?
const char* s = "123456";
printf("%zu\n", sizeof(s));
Note: "%zu" is indeed the correct way to print values of size_t type.
What does the following code excerpt print?
int tab[] = { 2, 4, 6, 8, 10, 12 };
putchar('1');
int a = -1;
int* p = tab + 2;
while ((a = *p++) < 10) { printf("%d", a); }
Considering double** tab;and provided that enough memory has been allocated for 4 lines and 4 columns,each of the same length (4), then tab[2][0] always comes in memory right after tab[1][3].