954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

passing values from array to array

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[i][j]=transmit[i][j];

}
.
.
.

rontab68
Newbie Poster
13 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

That should work. Are there other ways?----there always seems to be, maybe memcpy() or something, but I always use loops.

Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396
 
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.

rontab68
Newbie Poster
13 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 
1. memcpy

2. strcpy

3. pointer1=array1
    pointer2=array2
    --pointer1  =--pointer2
shashwat_2010
Newbie Poster
5 posts since Jan 2009
Reputation Points: 5
Solved Threads: 1
 

@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.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You