Im rather new to C, but I was struck with one curiosity as I delve into it.
From what I understand, there is not supposed to be any support for string-datatypes in the language itself; you need to import libraries to get this support (where the strings are actually implemented as char).
However the syntax allows you to specify a string as "blah blah".
What I mean is: the syntax gives special meaning to quotationmarks - interpreting data therein as strings.
Doesn't it seem odd that the syntax would allow you to write something that explicitly requires libraries to be included in order to be actually understood?
I know Java has this same principle, but there the String object is included in java.lang, which is always automatically imported. So there's no way that you could not include the String object.
Comments on this? Have I misunderstood something? Is it or is it not odd? I would like to hear some comments. Thanks!