matrices, estructuras
matrices, estructuras
matrices, estructuras
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Cadenas (6)<br />
#include <br />
#include <br />
int main(void){<br />
char c1[80],c2[80];<br />
printf("\n Ingrese una cadena de caracteres:");<br />
scanf("%s",c1);<br />
printf("\n Ingrese una cadena de caracteres:");<br />
scanf("%s",c2);<br />
printf("\n Longitudes: %d %d ",strlen(c1),strlen(c2));<br />
if(!strcmp(c1,c2)) printf("\nLas cadenas son iguales");<br />
strcat(c1,c2);<br />
printf("\n %s",c1);<br />
}<br />
return 0;<br />
19