Write down about the else if ladder

The else if ladder :

When a multipath decision is involved then we use else if ladder. A multipath decision is a chain of ifs in which the statement associated with each else is an if. It takes the following general form,






ContentMiddleAd


This construct is known as the else if ladder. The conditions are evaluated from the top, downwards. This can be shown by the following flowchart,

Author: Tanmay Chakrabarty

Tanmay Chakrabarty is a former CSE student, currently working as a Senior Software Engineer with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in Javascript, JQuery, JQuery UI and CSS. He tries to write notes every week but fails due to heavy loads of duty.

Recommended Recommends

Comments

Contact Us