How can I pass a variable String, i.e, one that changes during run-time to a function as a parameter?
For example function foo(char * string)
takes a string pointer parameter to do something with it. The following loop is uses the above function:
for(int i=0; i<n; i++){
foo("String"+i);
}
How can I achieve this?