Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
strcat
#include <stdio.h> //namespace std; //int strcmp(char *s, char *t){ int i=0;while((*s++==*t++)&&(*s!='\0')&&(*t!='\0')) return 0;} //int strcmp(char *s, char *t){int i; for(i=0;s[i]==t[i];i++)if(s[i]=='\0')return 0; return s[i]-t[i]; } int strcmp(char *s, char *t){ for(;*s==*t;s++,t++)if(*s=='\0')return 0; return *s - *t; } void strcat(char *s, char *t){while(*s!='\0')s++; printf("%d \n",s);} int main() { int *ip,a=3,b[10]={1,2,3,4,5,6}; char *c="sirdecarafctere"; char *c1="sigrdecaractere"; // cout<< strcmp(c,c1); printf("%d \n",strcmp(c,c1)); strcat(c,c1); // for(int i=1;i<strlen(c);c++) printf("%c \n",c[i]); }
run
|
edit
|
history
|
help
0
Busqueda binaria version recursiva
array and its sum
Assignment 3
sum of min and max
Assignment 2
selection sort
150108_recursividadFactorial
Greeting
Refcount220323
B_141104_NotaInterroganteDosPuntos