buscar caracter
void buscar(char cadena[], char buscado){
int cuantos, i;
i = 0;
cuantos = 0;
while(cadena[i] != '\0'){
if(cadena[i] == buscado){
cuantos++;
}
i++;
}
printf("El caracter %c, se ha encontrado %d veces en la cadena %s\n", buscado, cuantos, cadena);
}
Also in C:
- c unused variable
- connect servo to arduino
- puts without newline c
- print variable c
- Print the number 0 using write()
- how to remove button decoration
- FILE*
- 'keras.backend' is not a package
- python web crawler
- c function pointer
- djb2 algorithm for C
- how to make infinite loop in c
- declare variable in c
- program to concatenate two strings in c
- c print long
- turn a char into an int in c
- how to get a string in c with space
- c file size
- how to get the length of a linked list in c
- sum of array in c
- fa fa-facebook
- array length c
- print to console in c
- how to go to top of file in vim