Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Punteros: strcpy
//Title of this code //clang 3.6.0 #include <stdio.h> void strcpy(char *s, char*t) { int i; i=0; while((s[i]=t[i])!='\0') i++; } void strcpy2(char *s, char*t) { while((*s=*t)!='\0') { s++; t++; } } void strcpy3(char *s, char*t) { while((*s++=*t++)!='\0'); } int main(void) { int i; char fuente[20]="mi mama me mima"; char destino[20]; strcpy3(destino, fuente); printf("\n%s", destino); return 0; }
run
|
edit
|
history
|
help
0
UDP - Male/Velke pismena
cv8_5
Vzdalenost makro inline
VKI_Mihalyk_3_3
VKI_Mihalyk_3_2
Vectores: mayor, menor, media
Recorrido matriz bidimensional y busqueda valor
Bucles: Euclides
lab7
0002