mercredi 25 novembre 2020

Which one of these ways is better in c or c++?

Is there any difference between these two peace of code :

bool func(int a){

       if(a)
               return true;
       else
               return false;
}

and

bool func(int a){

       if(a)
               return true;

       return false;
}

If there is no difference which on is better?

Aucun commentaire:

Enregistrer un commentaire