C, what the fuck??!
bowero.nl
C, what the fuck??!
1–10 of 38 posts
Re: C, what the fuck??!
#2I am also not aware of any professional who would use multiple question marks in any kind of serious code that could be read by anybody else because that kind would reflect negatively on the perception of his professionalism.
Re: C, what the fuck??!
#3It's still clickbait, though.
Re: C, what the fuck??!
#4What is the probability of something like this appearing in a normal program written by somebody who is unaware of trigraphs? I am also not aware of any professional who would use multiple question marks in any kind of serious code that could be read by anybody else because that kind would reflect negatively on the perception of his professionalism.
A good compiler (eg: gcc) will warn if any token is interpreted as a trigraph
Edit: digraph works a bit differently [0]
Re: C, what the fuck??!
#5C++17 actually removed support for these.
Re: C, what the fuck??!
#6What is the probability of something like this appearing in a normal program written by somebody who is unaware of trigraphs? I am also not aware of any professional who would use multiple question marks in any kind of serious code that could be read by anybody else because that kind would reflect negatively on the perception of his professionalism.
`test.c:6:31: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]`
Re: C, what the fuck??!
#7What is the probability of something like this appearing in a normal program written by somebody who is unaware of trigraphs? I am also not aware of any professional who would use multiple question marks in any kind of serious code that could be read by anybody else because that kind would reflect negatively on the perception of his professionalism.
Re: C, what the fuck??!
#8Re: C, what the fuck??!
#9 %:%: ##
compl ~
not !
bitand &
bitor |
and &&
or ||
xor ^
and_eq &=
or_eq |=
xor_eq ^=
not_eq !=
C only has basic ones (still more intuitive than trigraphs). ]
}
%: #
Last time, I had to type a C program on a touchscreen, and those symbols were extremely difficult to enter. I knew digraphs can help, but then realized that I couldn't use the digraphs for logic operators without programming C under C++.Re: C, what the fuck??!
#10What is the probability of something like this appearing in a normal program written by somebody who is unaware of trigraphs? I am also not aware of any professional who would use multiple question marks in any kind of serious code that could be read by anybody else because that kind would reflect negatively on the perception of his professionalism.
In code written by people whose job it is, in part, to write code, i.e. what I would call professionals, multiple question marks do sometimes occur.