logo

Crowdly

What does the following code print? #include <stdio.h> #include <string.h> vo...

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

What does the following code print?

#include <stdio.h>

#include <string.h>

void f(char* string)

{

const size_t size = strlen(string);

if (size >= 8) string[7] = '\0';

if (size >= 5) string[4] = 'a';

puts(string);

}

int main(void)

{

f("How qre you?");

return 0;

}

0%
0%
0%
0%
100%
0%
0%
0%
0%
0%
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!