Home Blog Projects
Shivaji Varma Home Blog Projects Theme
Home Project Code Base Subsets

Subsets

Posted on May 10, 2018 by Edit

Program to print all subsets of given set of letters.

Input

ENTER THE SIZE OF THE ARRAY: 4 ENTER THE ELEMENTS INTO THE ARRAY: a b c d

Output

All combinations:
{ }
{ d }
{ c }
{ c d }
{ b }
{ b d }
{ b c }
{ b c d }
{ a }
{ a d }
{ a c }
{ a c d }
{ a b }
{ a b d }
{ a b c }
{ a b c d }

C

Tags: c
This website is made possible by displaying online advertisements to our visitors.
Please consider supporting by disabling your ad blocker.

Get new posts by email:
loading comments...

Shivaji Varma

Staff Software Engineer & Architect based in India. I build and scale cloud-based applications, contribute to open source, and share what I learn along the way.