One more doubt. Suppose i am writing a program (say an algorithm for arranging numbers in ascending order) in ANSI C and C99 standard. After writing the code, i compile and create the exe files for both programs, say EXE1 and EXE2.
Now the question is "if EXE1 runs on a machine/OS/platform , then is it guaranteed that EXE2 also runs on the same machine/OSplatform?"
I think though they may be coded in different standards of C, their EXE files are only binary code, so both EXE1, EXE2 can run on the same machine/OS.
Assume the following statements to be true:
Program 1 (coded in) ANSI c (compiled to) EXE 1 (runs on PLATFORM 1)
Program 2 (coded in) ISO c (compiled to) EXE 2 (runs on PLATFORM 2)
Program 3 (coded in) C99 (compiled to) EXE 3 (runs on PLATFORM 3)
.
.
.
Prog N (coded in) standard N (compiled to) EXE N (runs on PLATFORM N)
If PLATFORM 1 = PLATFORM 2 = . . . .PLATFORM N,
then does the above statements are still true?