Answer the question
In order to leave comments, you need to log in
Passing arrays to a function?
How can I pass a dimensionless array to a function so that it can be changed in the array and not return it return
Example
void inputReport(char LenRaportTXT[]) {
}
char* LenRaportTXT = new char;
inputReport(LenRaportTXT);
Answer the question
In order to leave comments, you need to log in
To pass an array of unknown size as the first function argument, use a pointer to this array, as part of the second - its size.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question