Liste des Groupes | Revenir à cl c |
People are saying that they have no idea what this code doesThis does not conform to any version of C or C++. This looks like a weird hybrid of C and BASIC, where each line of code is prepended with a numeric line number.
because they do not believe it conforms to c11 or c17.
>
typedef int (*ptr)(); // ptr is pointer to int function
00 int H(ptr x, ptr y);
01 int D(ptr x)
02 {
03 int Halt_Status = H(x, x);
04 if (Halt_Status)
05 HERE: goto HERE;
06 return Halt_Status;
07 }
08
09 int main()
10 {
11 H(D,D);
12 return 0;
13 }
Les messages affichés proviennent d'usenet.