My issue
In c program for diplaying a character from string why %c format specifier is used ?
My code
#include <stdio.h>
int main() {
char word[] = "Programming";
printf("%c\n", word[ 2 ]);
printf("%c", word[ 4 ]);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone