A
Abubakar
Hi,
I got this code from some site:
#include <stdio.h>
int
main() {
int n = -1;
x0:
printf("%d\n" , ++n);
goto *(&&x0 + n/1000 * (&&x1 - &&x0));
x1:
return 0;
}
it doesnt compile successfully. Apparently the goto statement need a
hardcoded *label* for a correct compilation. The above code maybe written in
gcc i think. Am i right to say that this code cannot compile in vc?
regards,
...ab
I got this code from some site:
#include <stdio.h>
int
main() {
int n = -1;
x0:
printf("%d\n" , ++n);
goto *(&&x0 + n/1000 * (&&x1 - &&x0));
x1:
return 0;
}
it doesnt compile successfully. Apparently the goto statement need a
hardcoded *label* for a correct compilation. The above code maybe written in
gcc i think. Am i right to say that this code cannot compile in vc?
regards,
...ab