Skip to content

Commit 83e2460

Browse files
authored
Update stack.c
Removed else-block in if (c == '-')
1 parent 30fc6c5 commit 83e2460

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

chapter_4/exercise_4_04/stack.c

-5
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ int getop(char s[])
215215
s[++i] = c = next;
216216
}
217217
}
218-
// Remove this else block so that a value like 1200 in the program won't be mistaken is 100. This block will skip the second digit that is read in the number parsing process
219-
/* else
220-
{
221-
c = getch();
222-
}*/
223218

224219
if (isdigit(c))
225220
{

0 commit comments

Comments
 (0)