C program to balance parentheses

C program to balance parentheses

Output:

Enter the expression:
( ( ( a + b ) ( ( c + d ) ) )

The resultant expression is:     (  (  a + b ) (  (  c + d ) ) )

Implementation: