logo

Crowdly

On a 64 bits architecture, what does the following code print ? const char* ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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.

0%
0%
0%
100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.epfl.ch?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!