Recursion subsequences

its a part of the code im showing
Subsequences(inp,out,i+1,j+1);
Subsequences(inp,out,i+1,j);
when i use this it works fine but when i use the below one
Subsequences(inp,out,i+1,j);
Subsequences(inp,out,i+1,j+1); it doesnt work, why is it happening.