IT Questions and Answers :)

Friday, December 13, 2019

In C Based languages, which boolean operator can be used to simplify nested IF statements of the form IF ConditionA Then If ConditionB Then C

In C Based languages, which boolean operator can be used to simplify nested IF statements of the form IF ConditionA Then If ConditionB Then C

  • And Also
  • And
  • Or Else
  • Or 
In C Based languages, which boolean operator can be used to simplify nested IF statements of the form IF ConditionA Then If ConditionB Then C

EXPLANATION


In a 'C' program are executed sequentially. This happens when there is no condition around the statements. If you put some condition for a block of statements the flow of execution might change based on the result evaluated by the condition. This process is referred to as decision making in 'C.' The decision-making statements are also called as control statements.
In 'C' programming conditional statements are possible with the help of the following two constructs:
1. If statement
2. If-else statement
It is also called as branching as a program decides which statement to execute based on the result of the evaluated condition.

Share:

0 comments:

Post a Comment

Popular Posts