Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ or Java

Name: Anonymous 2014-03-11 12:01

You are forced to choose at gunpoint. You will then proceed to work on a random project for a random company that uses the language you just chose. Or you can just take the gunshot. Provide reason for such a decision.

Name: Anonymous 2014-03-30 11:07

In the very very very old version of C language (think of the time dinosaurs roamed the Earth), known as "Reference Manual" version of C (which refers to a document written by Dennis Ritchie), labels formally had type "array of int", meaning that you could declare an int * variable

int *target;

and assign the address of label to that variable

target = label; /* where `label` is some label */

Later you could use that variable as the operand of goto statement

goto target; /* jumps to label `label` */

However, in ANSI C this feature was thrown out. In the standard modern C you cannot take address of a label and you cannot do "parametrized" goto. This behavior is supposed to be simulated with switch statements, pointers-to-functions and other methods etc. Actually

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List