Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.7K+ articles
C++
3.7K+ articles
C++ Programs
1.5K+ articles
number-digits
612+ articles
number-theory
424+ articles
CPP-Basics
102+ articles
Menu driven programs
9+ articles
CPP-Control-Flow
7+ articles
cpp-switch
8 posts
Recent Articles
Popular Articles
Difference Between if-else and switch in C
Last Updated: 23 July 2025
In C programming both switch statements and if-else statements are used to perform decision-making and control the flow of the program according to predefined conditions. ...
read more
C++
Geeks Premier League
CPP-Basics
cpp-switch
TCS-coding-questions
Volkswagen IT Services
Geeks Premier League 2023
How a statement is handled inside switch block but outside case
Last Updated: 23 July 2025
Switch case statements are a substitute for long if statements that compare a variable to several integral values. The switch statement is a multiway branch statement. It ...
read more
C/C++ Puzzles
C++ Programs
C++
Program Output
cpp-switch
Fallthrough in C++
Last Updated: 23 July 2025
Fall through is a type of error that occurs in various programming languages like C, C++, Java, Dart …etc. It occurs in switch-case statements where when we forget to add ...
read more
Misc
C++ Programs
C++
CPP-Basics
cpp-switch
CPP-Control-Flow
Menu-Driven program for Phone Directory
Last Updated: 23 March 2023
Problem Statement: Write a menu-driven program for using switch-case with following features:Store Contact numbers of peopleSearch for the Contact numbers using their name...
read more
DSA
cpp-switch
Menu driven programs
Program to Convert Hexadecimal Number to Binary
Last Updated: 29 April 2023
Given a Hexadecimal number as an input, the task is to convert that number to a Binary number.Examples:Input: Hexadecimal = 1AC5Output: Binary = 0001101011000101Explanatio...
read more
DSA
number-digits
cpp-switch
number-theory
Menu-Driven program using Switch-case in C
Last Updated: 21 July 2023
A Menu Driven program is a program that represents a menu of options to the user and different actions are performed based on different options. In this article, we will l...
read more
Misc
Technical Scripter
C Programs
C++ Programs
Computer Science Fundamentals
cpp-switch
Menu driven programs
Using Range in switch Case in C
Last Updated: 23 July 2025
You all are familiar with switch case in C, but did you know you can use a range of numbers instead of a single number or character in the case statement? Range in switch ...
read more
C++
C Basics
cpp-switch
Interesting facts about switch statement in C
Last Updated: 23 July 2025
Prerequisite - Switch Statement in C Switch is a control statement that allows a value to change control of execution.C // Following is a simple program to demo...
read more
C++
cpp-switch
C-Loops & Control Statements