News for hackers. Stuff that matters.
Re:URLs in C (2011) by klodolph on Wednesday November 04, 2020 @10:32AM (#24989889)
Another gotcha is that a statement must follow. The following is an error:

    int main() {
        https://error/
        int x = 3;
    }
Re:URLs in C (2011) by colejohnson66 on Wednesday November 04, 2020 @06:09PM (#24994024)
Why?
Re:URLs in C (2011) by eindiran on Wednesday November 04, 2020 @09:20PM (#24995103)
In C, a label requires a statement[0] to come after it. A declaration in C is not a statement (though it is in C++).

gcc for example gives the error "error: a label can only be part of a statement and a declaration is not a statement" for the code in OP's comment.

g++ happily compiles it.

See the first answer here: [1]

[0] https://en.wikipedia.org/wiki/Statement_(computer_science)

[1] https://stackoverflow.com/questions/49861965/declarations-de...