Nested Selection Structure in C Programming in Hindi/Urdu | 10th Computer Chapter 3
3.2.3 Nested Selection Structures Let's closely observe the general structure of an if-else statement given below. if (condition) Associated Code Else Associated Code The code associated with an if statement or with an else statement can be anyvalid C language set of statements. It means that inside an //block or inside anelse block, we can have other if statements or if-else statements. It also means thatinside those inner if statements or if-else statements we can have even more ifstatements or if-else statements and so on. Conditional statements withinconditional statements are called nested selection structures.All the following structures are valid nested selection structures. 1. if (condition l is true) if (condition 2 is true) Associated code else Associated code 2. if (condition l is true) if (condition 2 is true) Associated code Else if (condition 3 is true) Associated code 3. if (condition l is true) if (condition 2 is true) Associated code Else Associated code Else if (condition 3 is true) Associated code 4. if (condition l is true) if (condition 2 is true) Associated code Else Associated code Else if (condition 3 is true) Associated code Else Associated code Important Tip In compound statements, it is a common mistake to omit one or two braces while typing. To avoid this error, it is better to type the opening and closing braces first and then type the statements in the block. Did You Know? C programming language also provides Switch-Case structure to deal with conditions, but Switch-Case structure is applicable only in limited scenarios. The if, if else structures cover all the possible decision making scenarios. Social Media Links: ______/❤ All Students are requested to Follow Me on Social Media!! ❤\________ Instagram:➜ https://www.instagram.com/digitaleduc... Twitter:➜ https://twitter.com/shahbaz_ali101 Facebook Page:➜ https://www.facebook.com/digitalEduca... Whatsapp:➜ https://chat.whatsapp.com/GqLGyGuZyNp... Youtube:➜ https://bit.ly/32hA7C4?sub_confirmati... 10th Class Computer Science: How to install and Download Code::Blocks: https://bit.ly/3HuCBzO 10th Computer Science All Lectures Playlist: https://bit.ly/3eYGMbb 10th Computer Science All Exercise Playlist: https://bit.ly/3pMcoqu 10th Computer Science All Example Code Playlist: https://bit.ly/3pKxxkK 10th Computer Science All Programming Time: https://bit.ly/3eOmTmJ 10th Computer Science All Activities Playlist: https://bit.ly/3eFQOh1 10th Computer Science All Programming Exercise Playlist: https://bit.ly/3zltiQ6 9th Class Computer Science: 9th Computer Science Chapter 1: https://bit.ly/3SCa6pR 9th Computer Science Chapter 2: https://bit.ly/3SBi2I4 9th Computer Science Chapter 3: https://bit.ly/3EfbEBT 9th Computer Science Chapter 4: https://bit.ly/3EjLduP 9th Computer Science Chapter 5: https://bit.ly/3SU0O8x 9th Computer Science All Exercise: https://bit.ly/3EgNnvh 9th Computer Science All Activates: https://bit.ly/3rrYppN 9th Computer Science Complete Lectures: https://bit.ly/3t2BBhr 00:00 Intro 00:47 Nested Selection 04:00 Case 1 04:53 Case 2 06:08 Case 3 07:18 Case 4 08:37 Important Tip 09:06 Did You Know? 09:39 Outro #NestedSelectionStructure #NestedSelectionStructureinCProgramming #WhatisNestedSelection #ifelseinc #ifelsecontrolstatements #CifelseStatement #if-elsestatementinC #ifstatementinC #cconditionals #ifelseladderc #cifelse #ifelselogicinc #Whatareexamplescontrolstatement? #10thcomputernewbook2021 #class10computernewsyllabus #class10thcomputernewsyllabus #class10computersyllabus2021 #10thclassnewbook2022 #10thclasscomputernewbook2022 #class10computernotes #10thclassnewcourse2022 #10thcomputersciencenewbook2022 #10thclassnewbook2022 #DigitalEducation #DigitalEducationShahbazAli #IntroductiontoProgramming #LearnPythontheHardWay #PythonCrashCourse #IntroductiontoPython #IntroductiontoJava #IntroductiontoC #IntroductiontoC #ComputerGraphicsCourse #IntroductiontoProgrammingLanguage #IntroductiontoWebDevelopment #CProgrammingCourse #IntroductiontoCProgramming #10thComputerChapter1 #10thComputerChapter2 #10thComputerChapter3 #10thComputerChapter4 #10thComputerChapter5 #10thComputer #10thComputerChapter1Exercise #10thComputerChapter2Exercise #10thComputerChapter3Exercise #10thComputerChapter4Exercise #10thComputerChapter5Exercise #10thComputerScience #10thComputerPaper2022 #10thComputerPairingScheme2023 #10thComputerPaper2023 #10thComputerPairingScheme2023 #CLanguageTutorialforBeginners #CLanguage #CLanguageFullCourse #CLanguageProgramming #CLanguageCodewithHarry #CLanguageFullCourseinHindi #CLanguageBasics #CLanguageTutorial #CLanguageCourse #CLanguageTutorialforBeginnersinHindi #CLanguageinHindi #CLanguageSaurabhShukla #CLanguageProject #CLanguagewithHarry Computer Science 10th class Lecturer of Computer Science By Sir Shahbaz Ali For any query or private tutoring contact (0309-0334424) [email protected]
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.