for instance sth like follows..where array size is 500
where only the first and last value entered in the array are of my interest.
This piece of code above is incorrect. How do I code such a thing such that it gets correctly compiled on a c-compiler?
Code:
char RetVal[500][];
int32 IndexX;
RetVal[0][]= "Start Value";
for(IndexX = 1; IndexX < array_size-1; IndexX++)
{
RetVal[IndexX][]="middle values";
}
RetVal[array_size-1][]= "End Value";
This piece of code above is incorrect. How do I code such a thing such that it gets correctly compiled on a c-compiler?
Comment