C is a programming language, and therefore, there exists a C Language Standard. This states what the language is, what is it capable of, how it should work, etc.
Then there are a number of compilers...
Type: Posts; User: Elysia
C is a programming language, and therefore, there exists a C Language Standard. This states what the language is, what is it capable of, how it should work, etc.
Then there are a number of compilers...
No, you fail to understand.
This is not about using the latest and best compiler which is 100% standard compliant. This is about not depending on undefined behavior.
Can you declare string literals...
Don't give me that. You are using an old outdated compiler. So there is a huge chance that what works for you, should not work or will not work on today's modern and standards compliant compilers....
Adak, do PLEASE avoid bad practices when showing code. Use const char* with string literals.
And it's better to use strtol rather than atoi. How do you use them? That is what documentation is for....