Compiler marks "array" like it does "double"

Why does the compiler mark the word "array" like it would "double", "int", and "string"? Is there some significance to it? I wanted to name a class "arrayStack" but the word "array" was blue as if it was a double. Is there something I should be aware of?
http://www.google.com/?q=is+array+a+reserved+word+in+c%2B%2B
(I think that's the question you want to ask.)
Last edited on
To my knowledge, "array" is not a reserved word, nor is it a type like string, int or double. How your compiler handles a word is often times up to the compiler itself. Certain compilers will let you get away with certain things that others won't, and they'll also mark things a bit differently. For example, CodeBlocks does not do anything to the word "array", whereas your compiler may for whatever reason.

If you're ever concerned and can't get an answer about something, you can always abbreviate the word you want to use and do something like arrStack[] instead.

Hope that helps!
Topic archived. No new replies allowed.