I have an array of characters c[][] with different mappings to each index. For example:
{'a', 'b', 'c', 'd', 'e', 'f' } {'g', 'h', 'i' }
I need to return all the possible character combinations for this array as a string. That meaning, for the above character array, I should return: "ag", "ah", "ai", "bg", "bh", "bi", "cg", "ch", "ci", etc. It would be easy to do this for a character array of only two things like above, but if there are more arrays, then I do not know what to do... Which is what I am asking you all to help me with! :)