C++ characters

closed account (jwkNwA7f)
I have been wondering what some of these characters are called in C++ (if they have names):
# - Maybe "hash tag"?
:: - I have no idea for this one.
-> - Maybe "arrow"?

Thank you!
closed account (N36fSL3A)
I call them hashtag, dual semi colons, and arrow.
closed account (jwkNwA7f)
@Lumpkin That is actually what I called them. I was wondering if there was an actual name that these are called in c++.
closed account (N36fSL3A)
Oh, I dunno.
# followed by a word is a hash tag in social media, which has little to do with it's role in C++.

The only place a hash sign has significance in C or C++ is in the area of preprocessor directives. It is sometimes referred to as the stringize operator in certain contexts therein.

:: is often referred to as the scope (resolution) operator.

-> is most often referred to as the arrow operator in my experience.
closed account (Dy7SLyTq)
# is called hash. i asked this in a much earlier post and they said it was called hash. so it would be hash define or hash include. #! is shebang in america and hashbang in europe (i believe. correct me if im wrong but i think im right). the other two i have found to be called what cire calls them
Topic archived. No new replies allowed.