+ 3
What does this "#" in C?
What is the function of this "#"? In C#
7 odpowiedzi
+ 6
If your question is about the name of the language, from Wikipedia:
"The name "C sharp" was inspired by the musical notation whereby a sharp symbol indicates that the written note should be made a semitone higher in pitch. This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1 after being evaluated. The sharp symbol also resembles a ligature of four "+" symbols (in a two-by-two grid), further implying that the language is an increment of C++."
https://en.m.wikipedia.org/wiki/C_Sharp_(programming_language)#Name
P.S. I have seen and heard a lot of people refer to it as "C hashtag" or etc, if you are one of them, please just don't. Thanks.
+ 5
Are you taking about C or C Sharp?
C# stands for C Sharp and is a different programing language than C
+ 4
Aditya In C, the hashtag symbol '#' tells you that a pre-processor directive is about to be defined. Pre-processor directives are run before compiling the code; it's like editing your source code with certain text substitutions and all.
+ 3
Cat-licious Thanks i was searching this but can't find the correct explanation of this. Thankyou so much.
+ 2
C#
It's pronounced C sharp, although the simbol is indeed a nunber-sign (because of ascii)
It's name was once COOL (C-like object oriented language), but I think it's still cool today
Sharp in music means higher in pitch, suggesting that the language is an higher version of C
Furthermore it can be seen as
C++++, the meaning of which is trivial
(Haters call it D flat)
+ 2
Hope this will help https://www.geeksforgeeks.org/and-operators-in-c/
+ 1
That means C sharp ..onother programming language developed by microsoft