'permutation and combination'

Kindly help me .I need a program in c that will give the permutation and combination of english alphabets.
example. If the letters are a,b,c and if i want permutation for 2 elements the program display ab,ba,bc,cb,ac,ca and similarly for combination also the program should give answeras ab,ac,bc

What does this program have to do with OpenGL? Sounds to me like you are trying to get someone to do your homework for you.

Use recursion