CompuServe Messages

Trivia

#: 27651 S7/ProgrammingForum unknown
    23-Jul-86 23:20:32
Sb: #27643-Trivia
Fm: Darren New 73647,3301
To: Steve Ahlstrom 76703,2006

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

As a matter of fact, using the value and assigning to it in the same expression is EXPLICITLY undefined according to K&R (somewhere; I lent my copy). Woe to all who try to port such things! How about: extern int garbunga; int garfunc(i) int i; { i += 5; return i; } void main() { garbunga = 27; garfunc(garbunga++); printf("%d", garbunga); } What does this print, and what did garfunc return?