Could anyone please let me know the syntax for passing an array of strings by reference?
Could anyone please let me know the syntax for passing an array of strings by reference?
Regarding your recent flurry of threads: please post a (reasonably small) compileable example that demonstrates your initial attempt to find a solution -- including an actual (small, simplified, if possible) example of input and output.
Goal: the big picture (what are you actually trying to do)? Sometimes tossing parts of problems with perceived potential solutions leaves you with a bad solution.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
This is an answer I don't know!I know for int i use &int but what to use for an array of strings!
You've posted about 20+ times without posting the code that you have written as an attempt. You are starting to look like a leech.
There is no pass by reference in C. Instead you pass a pointer to simulate pass by reference.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
C doesn't have pass by reference. Just call by value. In some vague respects, you can emulate pass by reference(like the C++ pass by reference) by using pointers, but it is still call by value in C.
Passing a pointer using call by value in C and passing a reference in C++ are two fundamentally different beasts.