Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
B_141202_CONTADORPALABRAS
//Title of this code #include <stdio.h> #include <string.h> #include <ctype.h> #define _T 1000 int main(void) { char texto[_T]; short i; short contador; gets(texto); for(contador = 0 , i = 0 ; texto[i] ; i++) { if(isalnum(texto[i]) && !isalnum(texto[i + 1])) { contador++; } } printf("Cadena ... #%s#", texto); printf("\n\n\nPALABRAS: %hd\n\n\n", contador); return 0; }
run
|
edit
|
history
|
help
0
Memory leak
Nice1
ele 888 lab 1 part 1
Programação em C, testes
Galgotia university
2.1.2 Sum of all the elements in a one dimensional array A using reduction.
función free()
CO Assignment 1 Question 4
#Define / Case/ If practice
bitwise manipulation