Question: If we write C code in Turbo C compile and get an executable
out of it, will we be able to run the executable in Unix or
Linux ?Why?
Answer:
No, it won't run on a system other than what the compiler is targetting. Why? Because compilers are written to use libraries and these libraries are OS dependent. E.g. a program compiled for Windows has code to open and output to windows. That window support is not available in Linux or Unix.
No comments:
Post a Comment