CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Modifying a Mutable char Array

C code walkthrough · Question 45
easyStrings

Code

Read carefully. What does this print?
1#include <stdio.h>
2int main() {
3 char word[] = "hello";
4 word[0] = 'H';
5 printf("%s %c", word, word[4]);
6 return 0;
7}

Your answer