lundi 30 mars 2020

Undefined behavior [duplicate]

When I try to to call a function returning a bool as follows:

 bool un_retn(double s) {
     s++; 
     cout<<s;
  }

Why is this incorrect? If we consider s=10; then the output will be 11.

Aucun commentaire:

Enregistrer un commentaire