Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Potrebno je napisati inline funkciju koja računa apsolutnu vrijednost cijelog broja.
Ispravni kod je:
inline int abs(int x) { return x>0 ? x : -x;}
-> int abs(int x) { return x>0 ? x : -x;}
Ništa od ponuđenog.
int <abs>(int x) {
return x>0 ? x : -x;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!