How to find all possible sub-arrays of an Array?

0 votes
asked Aug 6, 2016 by Hitesh Garg (799 points)  

I have been trying to find out all the possible combinations i.e. sub-array of a given array. And how to find the number of such combinations for an array of size 'n'?
I am not able to figure out how to find all the permutations and how this works?

Please log in or register to answer this question.