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...
Excerpta asked 23/5, 2014 at 9:29

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...
Fixation asked 17/2, 2009 at 4:8

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, ...
Gingery asked 19/10, 2011 at 16:56

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...
Vories asked 22/12, 2014 at 11:22

1

Solved

We all know about the historical curiosity that is digraphs and trigraphs, but with all the changes made to C++ in recent years I'm curious: are they valid C++14? How about C++17?
Lawrence asked 28/12, 2014 at 16:24

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...
Eclipse asked 16/9, 2011 at 23:42

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?
Christachristabel asked 21/5, 2013 at 4:43

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...
Whitehouse asked 21/2, 2012 at 23:53

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 ...
Tourist asked 5/10, 2010 at 10:5

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...
Uri asked 19/10, 2009 at 3:31

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...
Inexplicable asked 5/8, 2009 at 17:15
1

© 2022 - 2024 — McMap. All rights reserved.