Hi,
If I want to pass values of one array to another array, is this the proper
code implementation. any alternative or suggestions Thanks.
.
.
.
for ( i=0; i<9; i++)
for (j =0; j<9; j++){
receive[j]=transmit[j];
}
.
.
.
Hi,
If I want to pass values of one array to another array, is this the proper
code implementation. any alternative or suggestions Thanks.
.
.
.
for ( i=0; i<9; i++)
for (j =0; j<9; j++){
receive[j]=transmit[j];
}
.
.
.
That should work. Are there other ways?----there always seems to be, maybe memcpy() or something, but I always use loops.
That should work. Are there other ways?----there always seems to be, maybe memcpy() or something, but I always use loops.
Thanks for the reply bro, I will use this method.
1. memcpy
2. strcpy
3. pointer1=array1
pointer2=array2
--pointer1 =--pointer2
@shashwat_2010
Please do not resurrect old threads and have a look at forum rules. Please read before posting - http://www.daniweb.com/forums/thread78223.html
Thread Closed.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.