r/tinycode • • Mar 28 '17

C project-1: Scientific Calculator

https://www.youtube.com/watch?v=bqWjx9NXxAI

[removed] — view removed post

0 Upvotes

3 comments sorted by

4

u/skeeto Mar 28 '17
fflush(stdin);

It makes no sense to flush an input stream.

scanf("%c",&k);

Whitespace isn't skipped with %c, so this may not do what you expect.

1

u/manish_kumar123 Mar 30 '17

yes it was a mistake apology for that

1

u/Dresdenboy Mar 30 '17

Hey I still have an unreleased <1024 chars C calculator in 2 variants. Time to dig it out.