Files
c64-demo-cpp/oscar64/autotest/optiontest.c
T
2026-07-18 20:34:55 +02:00

15 lines
197 B
C

#include <stdio.h>
#include <assert.h>
int option(bool a, int b, int c)
{
return a ? b : c;
}
int main(void)
{
assert(option(true, 1, 2) == 1);
assert(option(false, 1, 2) == 2);
return 0;
}