CJCoding With Joseph
← Back to Question List
C Code Walkthrough #45

Modifying a Mutable char Array

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