I am trying to string copy using strcpy, a row of a two dimensional array into a one dimensional array.
Can I do this?
How about this?
Can I do this?
Code:
void function(char tempArray[][10])
{
int i;
int j;
string minimum;
for(i=0; i< MAX_SIZE; i++)
{
location = i;
strcpy(minimum,tempArray[i]);
}
}
Code:
void function(char tempArray[][10])
{
int i;
int j;
char minimum[];
for(i=0; i< MAX_SIZE; i++)
{
location = i;
strcpy(minimum[],tempArray[i]);
}
}
Comment