Answers for "how to read character from a string in c"

C
1

how to read character from a string in c

void main(){
char arr[100]
scanf("%s",arr); // or gets(arr); to include spaces
for(int i=0; arr[i] != '\0'; ++i)
{
printf("%c\n",arr[i]);
}
}
Posted by: Guest on March-03-2022

Code answers related to "how to read character from a string in c"

Code answers related to "C"

Browse Popular Code Answers by Language