Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
B_141202_Cadenas01
//Title of this code #include <stdio.h> #include <string.h> #include <ctype.h> #define _T 100 int main(void) { char c1[_T]; char c2[_T]; char c3[_T]; short i, j; printf("Cadena 1 ... "); gets(c1); for(i = 0 ; c1[i] ; i++) { c2[strlen(c1) - i - 1] = c1[i]; } c2[i] = 0; printf("\n\nc1: %s\n", c1); printf("c2: %s\n", c2); for(i = j = 0 ; c1[i] ; i++) { if(isalnum(c1[i])) { c3[j++] = c1[i]; //j++; } } c3[j] = 0; printf("c3: %s\n", c3); return 0; }
run
|
edit
|
history
|
help
0
hello world
Test2
B_141209_EsMayor
Test 3
htabprepa
Sheldon 9 area none aliens as aliens and farms Lockheed Kelly and lame lead district 9
Assignment 5 Cos(x)
good Job
20161118_ArrayRepetidos
Largest and smallest