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
c
AC_setting_example
ptr_to_ptr
Project 5 v.05
test1.c
linear hybrid cellular automaton reversible random bit generator stream cipher
table of 123
B_141104_TresPuntosTriangulo
Volume of a square pyramid With functions
Lior Yehieli Lesson