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];

}
.
.
.

Recommended Answers

All 4 Replies

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
commented: why bump this?? -1
commented: 4 years late, and for what - bunch of crap keywords without explanation -4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.