Ive looked this up and the websites usually say that it isnt a keyword - reserved word (whatever you like) and then they explain what an array is. Im using Visual C++ 2010 and when I type 'array' it goes blue like any other keyword. (such as 'int') If an array is declared using this '[]' after the name of the variable, whats the point of using a keyword?
from my knowledge "array" is not a keyword, so therefore you could not use it to declare an array. And if it does consider it a keyword, it would enforce my idea not to trust a product of microsoft.
Ya, I read that and everyone there just kepps sayiong that it isnt a keyword?
When array is typed in, the text becomes blue instead of black. This must mean it is a keyword because the same thing happens with other keywords.(again, such as int)
It's not a reserved word under ISO standards. Microsoft's C++/CLI defines array in the cli namespace, and Visual Studio's syntax highlighting will treat it as a reserved word. This usage would be considered a vendor extension and not a part of any international C or C++ standard.
and
Visual Studio never bothered with defining different C++ grammars for their pretty printer. ISO C++, VC++, C++/CLI, or just old C - all share the same grammar. So, names like array and interface are all treated as if they were keywords.
so apparently its a microsoft thing, nothing related to the standard c++
for example attempting to declare an array with "array" results in an error in everything other than your IDE.