Question:
1. . Give an example of conditional expression
2. Output the code
int m = -10, n = 20;
n = (m < 0) ? 0 : 1;
printf("%d %d", m, n);
1. . Give an example of conditional expression
2. Output the code
int m = -10, n = 20;
n = (m < 0) ? 0 : 1;
printf("%d %d", m, n);
No comments:
Post a Comment