jeudi 2 juillet 2015

C, debugger breakpoints on simple if else statement

I'm very new to coding, I'm editing a simple C function in CodeBlocks. I'm getting a red error dot next to "else", I could't spot any problem with my code, perhaps its something I have overlooked. Please help, thanks!

int             isZero  (float f)
{
  unsigned int  u = *(unsigned int*)&f;

    if ((u== 0x0) || (u==0x80000000) );
        return 1;
    else
        return 0;

    return (EXIT_SUCCESS);

}

Aucun commentaire:

Enregistrer un commentaire