trigraphs Questions
2
Solved
I came across some weird-looking code. It doesn't even look like C, yet to my surprise it compiles and runs on my C compiler. Is this some non-standard extension to the C language and if so, what i...
8
Solved
I've just read this nice piece from Reddit.
They mention and and or being "Alternative Tokens" to && and ||
I was really unaware of these until now. Of course, everybody knows about the d...
1
Solved
I'm trying to match some chunks if interesting data within a data stream.
There should be a leading < then four alphanumeric characters, two characters of checksum (or ?? if no shecksum was sp...
Gesticulate asked 8/11, 2016 at 9:52
4
Solved
I saw a line of C that looked like this:
!ErrorHasOccured() ??!??! HandleError();
It compiled correctly and seems to run ok. It seems like it's checking if an error has occurred, and if it has, ...
4
Solved
Code:
#include <stdio.h>
int main(void)
{
??< puts("Hello Folks!"); ??>
}
The above program, when compiled with GCC 4.8.1 with -Wall and -std=c11, gives the following warning:
sou...
Volteface asked 11/5, 2015 at 11:58
1
Solved
C++17 removed trigraphs. IBM heavily opposed this (here and here) so there seem to be arguments for both sides of removal/non removal.
But since the decision was made to remove trigraphs, why leave...
1
Solved
2
Solved
I want to do a text search like google suggestions.
I'm using PostgreSQL because of the magical Postgis.
I was thinking on using FTS, but I saw that it could not search partial words, so I found ...
Cassino asked 16/5, 2012 at 15:44
4
Solved
Given that there were once reasons to use digraphs and trigraphs in C and C++, does anyone put them in code being written today? Is there any substantial amount of legacy code still under mai...
3
Solved
I saw the following code from some legacy codes:
size_t a = 1 ???- 2 :0;
What does the symbol ???- mean in C++? How should I understand it?
2
Solved
I've got some (legacy) code that I'm building with clang for the first time. The code is something like:
sprintf(buf, "%s <%s ????>", p1, p2);
Clang gives the following warning (error with...
5
Solved
I had found a strange output when I write the following lines in very simple way:
Code:
printf("LOL??!\n");
printf("LOL!!?\n");
Output:
It happens even the code is compiled under both MBCS ...
9
Solved
I created a new project with the following code segment:
char* strange = "(Strange??)";
cout << strange << endl;
resulting in the following output:
(Strange]
Thus translating '?...
Ariannearianrhod asked 3/11, 2009 at 19:0
1
Solved
I was looking at the escape sequences for characters in strings in c++ and I noticed there is an escape sequence for a question mark. Can someone tell me why this is? It just seems a little odd and...
9
Solved
According to C++'03 Standard 2.3/1:
Before any other processing takes place, each occurrence of one of the following sequences of three characters (“trigraph sequences”) is replaced by the singl...
1
© 2022 - 2024 — McMap. All rights reserved.