Discussion:
Return Statements
(too old to reply)
Rahul
2004-06-30 02:29:42 UTC
Permalink
There seems to be a little discrepency regarding return statements. Do
we have to make sure that every function besides the main in our program

has a return statement? Or is that a symantic error and assignment 5
should take care of that? Thank you.

Rahul Jagtiani
Nguyen Nguyen
2004-06-30 15:46:52 UTC
Permalink
Not every procedure has to have a RETURN statement (i.e. VOID procedures).
You can check for this sort of thing if you like, but I think it is much
easier to do during semantic analysis.

Nguyen
Post by Rahul
There seems to be a little discrepency regarding return statements. Do
we have to make sure that every function besides the main in our program
has a return statement? Or is that a symantic error and assignment 5
should take care of that? Thank you.
Rahul Jagtiani
Loading...