Answer

There was probably a very strange-looking real number printed out. ADD expects two real numbers as arguments, and you are giving it two integers. When you do this, ADD interprets the internal representation of the integers as real numbers, which is not what you intended. Imagine trying to speak French to someone who spoke only English. The listener would try to make sense of the French, but probably wouldn't do a very good job. The same thing is happening here.

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu