c get first n characters of string code example
Example: 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])
}
#include <stdio.h>
int main(void){
char b[5];
scanf("%s",&c);
printf("Simple answer %c",b[0:4])
}