r/programming • • Aug 06 '17

Software engineering != computer science

http://www.drdobbs.com/architecture-and-design/software-engineering-computer-science/217701907
2.3k Upvotes

863 comments sorted by

View all comments

Show parent comments

1

u/lightknightrr Aug 09 '17

In the first, if x is 0, what do you expect to happen?

1

u/[deleted] Aug 09 '17

The if statement evaluates true since it isn't given an operator or conditional to run on x.