Answers for "ternary operator in c example"

C
1

Ternary operator operates on three operands in c

//Looking at the maximum example

int findMaximum(int a, int b){
    //if a > b, it returns a, if not it returns b
    return (a > b) ? a : b;
}
Posted by: Guest on December-22-2021

Code answers related to "C"

Browse Popular Code Answers by Language