this is a function.
int find(int x, int y){
return( (x<y) ? 0 : (x-y) );
}
when we execute find(x,find(x,y))
, it will give minimum of x and y. I'm not getting how this is executing to give the minimum. what does "( (x<y) ? 0 : (x-y) ) ."
means in C++?
Aucun commentaire:
Enregistrer un commentaire