Liste des Groupes | Revenir à cl c |
On 5/18/2024 8:12 PM, Sam wrote:Please don't answer the trolls. He had to cut a part of your post inolcott writes:I added the line numbers so that I could describe the execution
>People are saying that they have no idea what this code does>
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 }
This 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.
>
trace. It compiles under Microsoft with these flags:
cl /GS- /std:c11 /c /arch:IA32 Test_Compile.c
cl /GS- /std:c17 /c /arch:IA32 Test_Compile.c
Les messages affichés proviennent d'usenet.