mercredi 26 avril 2017

Declare variable in if statement (ANSI C)

Is there any way to declare variable in if statement (using ANSI C only) ?

Example:

if(int variable = some_function())
{
    return 1;
}

Aucun commentaire:

Enregistrer un commentaire