There was an error while loading. Please reload this page.
1 parent 02cf095 commit a80d748Copy full SHA for a80d748
1 file changed
data_structures/stack/parenthesis.c
@@ -100,12 +100,10 @@ int main(void)
100
for (int a0 = 0; a0 < t; a0++)
101
{
102
char s[SIZE];
103
- int result;
104
printf("\nPlease enter the expression? ");
105
scanf("%s", s);
106
- result = isBalanced(s);
107
108
- if (result == 1)
+ if (isBalanced(s))
109
printf("\nYES\n");
110
else
111
printf("\nNO\n");
0 commit comments