Decision making in C allows you to execute different code blocks based on conditions.
if (condition) { // code to execute if condition is true }
if (condition) { // code if condition is true } else { // code if condition is false }
if (condition1) { // code for condition1 } else if (condition2) { // code for condition2 } else { // code if none of the above conditions are true }
switch (expression) { case constant1: // code for constant1 break; case constant2: // code for constant2 break; default: // code if no case matches }
result = (condition) ? value_if_true : value_if_false;