how to read character from a string in c
#include <stdio.h>
int main() {
char str[] = "Hello";
char ch = str[0];
printf("The first character of the string is: %c", ch);
return 0;
}
#include <stdio.h>
int main() {
char str[] = "Hello";
char ch = str[0];
printf("The first character of the string is: %c", ch);
return 0;
}