6.9k views
3 votes
Write the definition of a function min that has two int parameters and returns the smaller. submit

User Rhyek
by
6.3k points

1 Answer

3 votes
int min(int a, int b){
return a<b?a:b;
}