Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
strcmp
#include <stdio.h> //using namespace std; /*int strlen(char *s) { char *p=s; while(*p!='\0') {printf("%d \n",p);p++;} //cout<<p<<"\n"; printf("%d \n",p-s); // cout<<s<<"\n"; }*/ void strcpy(char *s, char *t) { while((*s=*t)!='\0' ){s++;t++;} } int main() { int *ip,a=3,b[10]={1,2,3,4,5,6}; char *c="sirdecaractere"; char *c1="hjdvveuvevegt1"; ip=&a; // strlen(c); strcpy(&c,&c1); for(int i=1;i<strlen(c);c++) printf("%c \n",c[i]); }
run
|
edit
|
history
|
help
0
AC_setting_example
hello kous
Goodone for understanding array passing
back
A_141124_arrayIguales
test
Practice Problem 7
h
ptr_to_ptr
lab5