Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
strcat
//Title of this code //g++ 4.8.2 #include <stdio.h> void strcat(char *s, char *t) {char *p=t;int i=10; while(*s!='\0')s++; //printf("%d",s-p); i=s; while((*s++ = *p++)!='\0' );//{*s = *p;s++;} //for(int i=0;i<strlen(s);i++) printf("%c \n",*s); } //printf("%d \n",s); int main() { //int *ip,a=3,b[10]={1,2,3,4,5,6}; char c[100] ="mamaare mere";//new char[20]; char c1[] ="wwwert";//new char[20]; strcat(c,c1); // c[0]='b'; puts(c); // memcpy(c,"sirdecara", 20); // char *s= new char[20]; // memcpy(s,"lbirdecaph", 20); // c1 // cout<< strcmp(c,c1); //printf("%d \n",strcmp(c,c1)); for(int i=0;i<strlen(c);i++) printf("%c ",c[i]); }
run
|
edit
|
history
|
help
0
addition
Newtons method
X=1
Linear Searching
strrev
Conflito entre 4 threads
FILE_Access
strend
data types and printf
18BCE2182 ASSESS_3 Q2