Advertisements
Advertisements
प्रश्न
Explain with a flowchart the following control structure:
Selection Logic
स्पष्ट कीजिए
Advertisements
उत्तर
This logic employs a number of conditions and these conditions select the module among several alternative modules. These are the types of conditional structures:
- Single Alternative: If condition holds true then Module A is executed, otherwise Module A is skipped and control transfers to the next step of algorithm.
Form of the structure:
If condition, then:
[Module A]
[End of IF Structure]
- Double Alternative: This structure has following form
IF condition, then:
[Module A]
Else:
[Module B]
[End of IF Structure]
if condition is true Module A is executed and if condition is false Module B is executed.
shaalaa.com
Basic Data Structures (Stack, Queue, Dequeue)
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
