Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
pllkkj
printing float pointers
Test 4
DUE BY TUESDAY
with goto, with j++
MEMORy eRROR
Nearly working
ordenarcifrademenosamas
Programação em C, testes
150112_CribaErastotenes
Please log in to post a comment.