Conditional Or Ternary Operator In C Code Example


Example 1: how to use ternary operator in c programming

int a = 10, b = 20, c;  c = (a < b) ? a : b;  printf("%d", c);

Example 2: ternary operator in c

c = (a < b) ? a : b;

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?