I wrote the absolute function using ternary operator as follows
int abs(int a) { a >=0 ? return a : return -a; }
I get the following er
What's the difference between the two?
One is correct syntax, the other is not.