For school I have to use VIM to write C, this is through a secure shell client t
ID: 3664575 • Letter: F
Question
For school I have to use VIM to write C, this is through a secure shell client that connects to a Zeus server. The reason is so all code compiles uniformly and students can't say it worked on their system while it doesn't compile on the professor's system.
I prefer CodeBlocks over the VIM offered through the SSH connecting to Zeus. My main question is, what are some reasons my code on CodeBlocks would not compile and work on Zeus? Specifically, the subparts I would like answered are: does this depend on the hardware, GCC? Does it come down to syntax rules applicable to a certain system? If so, does that mean if I follow those syntax rules on CodeBlocks it will work on Zeus? If you can give a simple but thorough explanation it'd be awesome. If you don't COMPLETELY feel like answering just pass it to someone who wouldn't thoroughy answering it. Thanks!
Explanation / Answer
Answer for main question :
There are different C compilers available like Microsoft C, Turbo C, ANSI C, etc...
So the programs perfectly working in one compiler may not work in other compilers.
That is the reason why your programs some times will not compile in your system and compile in your zeus server.
Answer for sub parts:
Yes. This depends on hardware also.
Syntax for c programs is same. But what it matters is it differs in some functions.
You have to find out which type of C compiler you are using and write code accordingly.
I suppose this explanation is as per your expectations for the answer and I suggest you to comment.