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

ONE WORD, THE FORCED EXPLANATION OF CODE

Name: MY OTHER CAR IS A !CUddr/56hw 2007-09-21 8:43 ID:zK4D8/cJ

Name: Anonymous 2007-09-21 8:54 ID:Heaven

>>3
And to explain WHY it's incorrect (and demonstrate my quoting skillz)


> /*  Warning:  bogus C code!  */

    if (some condition)
            if (another condition)
                    do_something(fancy);
    else
            this_sucks(badluck);

    Either the indentation is wrong, or the program is buggy, because an "else" always applies to the nearest "if", unless you use braces.
incorrect.

The indentation is irrevelant in C.
The program is not buggy.

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