2.12 – How Block { } Works in simple if & if…else | Bigger Number Program | New Series
Автор: Burle Sharma (geecoding)
Загружено: 2026-01-06
Просмотров: 6
📝 Video Description
Welcome to the C Programming – Complete Course (New Series) by Burle Sharma.
In this class (2.12), we continue the discussion from the previous video and clearly explain how block { } works in C programming.
To make the concept crystal clear, the same problem is solved in two different ways:
Program Problem:
Accept two numbers from the user and display the bigger number.
Explanation Flow in This Video:
🔹 Part 1 – simple if with block { }
Program is written using simple if
Proper block { } is used
Dry run is performed
Program is executed
Explanation is given on how the block controls multiple statements
🔹 Part 2 – if…else with block { }
The same problem is rewritten using if…else
Block { } is used with both if and else
Assumption is clearly stated that user inputs two different numbers
Dry run and execution are shown
Comparison is made between simple if + block and if…else + block
This video helps in understanding when simple if is sufficient and when if…else is more suitable, while maintaining correct logic using blocks.
🎓 What you’ll learn in this video:
Writing a bigger number program using simple if
Role of block { } in simple if
How block groups multiple statements
Writing the same logic using if…else
Difference between simple if and if…else in logic handling
Importance of assumptions in program design
Dry run and execution for better understanding
🧠 Key Learning Point:
Block { } ensures that multiple statements are treated as a single unit.
Without blocks, logic may break even if syntax is correct.
#CProgramming #LearnC #BurleSharma #CProgrammingNewSeries #BlockInC #IfElseInC #SimpleIfInC #ControlStatements #CBeginners #CLogic#geecoding
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: