Login | Register    RSS Feed Download our iPhone app Browse DevX
Sign up for e-mail newsletters from DevX  Tip of the Day
Language: C++ Expertise: Beginner Aug 14, 2000  Differences in
Execution Flow  Why would a program not yield any errors, and
yet not run on one system, while resulting in a perfect run
(unchanged) on another system? Specifically, a switch statement
was completely ignored on my system, yet functioned accurately
on my professor's.  Yes, it's possible to have the same program
behave differently on different machines. There could be many
reasons for this. For example, if the program is implicitly
linked with certain runtime libraries (or DLL's) that are not
identical on both machines, the same program can exhibit
different behavior when it executes on different machines.
Likewise, certain applications access environment variables that
might differ from one machine to another. An example of such a
variable can be "IP_ADDRESS" or even USER. Since the values of
these variables can be different o