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

Quick

Name: Anonymous 2011-08-14 13:53


int digitCheck(int i, int j)
{
    while(i > 1)
    {
        --i;
        j /= 10;
        if (j < 1)
            return 1;
    }
   
    return 0;
}


It's supposedly ANSI C.

Just testing a compiler.

When should this return 0?
When should this return 1?

Name: TRUE TRUTH EXPERT 2011-08-14 14:04

/=

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