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
Nice1
Assignment 8
fork() System call
150114_ArrayOrdenado
C_141127_Matriz01
tst2.c
array poi
Memory leak
Lab 7 blackjack v1.1
pseudo hw