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
SOLUCION EJERCICIO SPOTIFY
Project 4 v1
Swiss Infotech Tutorial
str_ptr_to_fumc_v2
problem5 review fundamentos
PART 2
Undefined behavior
Spring 2017 Lab 4 v1.1
Ahora si?
FirstCProg