Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
B_141202_funcionesString
//Title of this code #include <stdio.h> #include <ctype.h> #include <string.h> int main(void) { char c1[100]; char c2[100]; char c3[100]; char c4[100]; short i; printf("Cadena 1 ... "); gets(c1); printf("Cadena 4 ... "); gets(c4); strcpy(c2, c1); printf("\nCadena1: %s\n", c1); printf("Cadena2: %s\n", c2); for(i = 0 ; c1[i] != 0 ; i++) { c3[i] = toupper(c1[i]); } c3[i] = 0; printf("Cadena3: %s\n", c3); i = strcmp(c1, c4); if(i < 0) printf("%s es menor que %s\n", c1, c4); else if(i > 0) printf("%s es mayor que %s\n", c1, c4); else printf("%s y %s son IGUALES\n", c1, c4); return 0; }
run
|
edit
|
history
|
help
0
Partition
1.c
C_141127:MatricesUnSoloIndice
14th Dec Project1 v0.2
strcat
B_141212_OrdenarArray
My first reevers C 2darryp
Virtual table sketch
Kous
program