Say I have a few arrays like this:
hi=["h","i"];
how=["h","o","w"];
are=["a","r","e"];
you=["y","o","u"];
and I want to pass these to a function and have the function print out (in this way...my function is doing similar operation, but not exactly) all of the arrays such they show.
hihowareyou
I'm thinking something like this: But, somehow pack the arrays in a struct??
void printit(char *data){
for (char i in data; i<sizeof(data)/sizeof(data[0]);i++){
do some print operation on data[i];
}
}
I've tried this pseudo code in various iterations with structs with varying (although persistent) degrees of failure. As such, I feel like I'm misunderstanding how to pass collections of arrays to something to be worked on from a fundamental perspective.