|
![](/i/fill.gif) |
Invisible wrote:
> So cont points to a zero-argument function that returns a zero-argument
> function? And this loop just calls it repeatedly?
Assuming TRUE is a value that always returns non-zero, yes. The code itself
appears to implement a state machine.
Of course, this being C, 'TRUE' could be a macro that expands to a function
that returns a value and thus the loop need not be infinite. It could even
expand to a variable with a decrement or increment operator. Or really
anything - if the code were presented to someone as part of an computer
science exam, for example, they would probably be expected to pick that
possibility up. In the real world, no programmer would ever do something
that mean with a macro called TRUE. Right? :-)
-- Chris
Post a reply to this message
|
![](/i/fill.gif) |