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

String and a Single Character

C code walkthrough · Question 20
easyStrings

Code

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

Your answer