Till now, i have been successfully compiling a same code in both windows and Linux Based system using code-blocks! And got no errors till now but i am just c++ beginner and my program are simple so i couldn't figure it !so i thought maybe I could get it cleared from you, guys!
Does all c++ code(exactly the same) will compile and work the same on Windows system as well as Linux Based system? and Why?
If your answer is:YES,they do
- Why are same c++ programs in different versions (Windows version and Linux version)?
If your answer is:No,they dont
Why? and What code work in windows and not in Linux and vice versa?
Is there any c++ code to find whether it is running in windows based system or Linux based system?
Does all c++ code(exactly the same) will compile and work the same on MAC system as well as Linux Based system?
Thanks for reading