I need help with how to copy array a into first portion of array b. Assume double a[11], b[34].
This is what I have so far:
double i = 0;
a[11];
b[34 (sizeof (a) ) ];
do
{
b[ i ] = a[ i ]
itt;
}
while ( i < sizeof (a) );
:confused:
Printable View
I need help with how to copy array a into first portion of array b. Assume double a[11], b[34].
This is what I have so far:
double i = 0;
a[11];
b[34 (sizeof (a) ) ];
do
{
b[ i ] = a[ i ]
itt;
}
while ( i < sizeof (a) );
:confused:
memcpy() is your friend (well, ok, so is google)
Thanks for your response but I'm a baby in C Programming -- please explain your reponse in laymans terms.:o
memcpy() is the function most appropriate for this situation
google is the search engine most appropriate for any situation
Thank you Salem!