0

what is this operation mean? i found it on chalange task;

#include <iostream> using namespace std; int main() { int a = 5; int b = 55; int c = 555 int d = (c%b > c%a)?5:55; cout<< d; return 0; }

8th Apr 2017, 12:46 AM
Yusuf Daulima
Yusuf Daulima - avatar
2 odpowiedzi
+ 7
It is a condtional statement. Same as If statement It can be rewritten as: if (c%b>c%a) d=5; else d=55;
8th Apr 2017, 12:49 AM
Pixie
Pixie - avatar
+ 1
oooo... thanks sweet;
8th Apr 2017, 12:53 AM
Yusuf Daulima
Yusuf Daulima - avatar