📌  相关文章
📜  (avar == 1) ? (bvar == 2 ? 结果 = 3 : (result = 5);) : (result = 0); - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.128000             🧑  作者: Mango

代码示例1
int a = 1, b = 2, ans;
ans = (a == 1 ? (b == 2 ? 3 : 5) : 0);
printf ("%d\n", ans);