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

goto is good

Name: Anonymous 2012-06-11 22:02

if you think otherwise you're a trendfag. goto is far more efficient than function calls for short blocks of code (lol compiler ignoring inline) and have a lot of neat applications.

Name: Anonymous 2012-06-12 0:16

void fizz_buzz(int upto)
{
    if (upto > 1)
    {
        fizz_buzz(upto - 1);
    }

    if (upto % 3 == 0 & upto % 5 == 0) { printf("FizzBuzz"); }
    else if (upto % 3 == 0) { printf("Fizz"); }
    else if (upto % 5 == 0) { printf("Buzz"); }
    else { printf("%d", upto); }
}

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