What are Decision Making Statements in C Programming

LAST READ: APR 19 2024 | Author: JANET

Decision Making Statements in C


Decision Making Statements in C


In any programming language decision making is a core concept, A programmer must have knowledge of decision making. Read the below lines carefully!


  • If there is a football match on TV I would stay at home.
  • If I get $1000 I would buy a computer this month.
  • If I will pass the exam I would like to give a party.


In the above sentence, the decision will be made on some conditions, if the condition is true then the task will happen otherwise not.

In the same ways, In C programming decisions are also made based on some conditions. For example...


Condition For Voting


age >= 18;


If Condition is True

If the above condition is true then, the boy is eligible for voting.


If Condition is False

If the above condition is false then, the boy is not eligible for voting.


The above example is a very small example but as a programmer, we have worked on large data that may need many decisions based on various conditions.


Types of Decision Making Statements in C


In C programming there are 4 ways to make a decision about the conditions. It totally depends on the programmer which decision-making technique he wants to use to make the decision. All 4 techniques are listed below.



In the next chapter, we will study all decision-making statements one by one in detail.

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)