find first charcater in string c code example
Example 1: c check first character of string
#include <stdio.h>
int main(void){
char b[5];
scanf("%s",&c);
printf("Simple answer %c",b[0:4])
}
Example 2: c check first character of string
// c char str[](single string)
array[0]
// c char str[] (multiple string)
array[0][0]
// c++ std::stirng s;
s[0]