text: arr [ ] -- -> Input Array data [ ] -- -> Temporary array to store current combination start & end -- -> Staring and Ending indexes in arr [ ] index -- -> Current index in data [ ] r -- -> Size of a combination to be printed
code: static void combinationUtil ( int [ ] arr , int n , int r , int index , int [ ] data , int i ) {