Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Comments
Bookmark
Share
Add to Playlist
Report
Learn Programming Technique C to Master Skills - Switch Case Program ( Continue ...)
Tutorials Arena
Follow
10/19/2024
Category
š
Learning
Transcript
Display full video transcript
00:00
Hello everyone. Today I'm going to cover another program of Switchcase. The program is that
00:09
if I press 1, so it should display 1. If I press 2, so it should display 2. If I press
00:15
3 from the keyboard, so it should display 3. If I display any one of the number from
00:22
the keyboard, so it should display what wrong number. It's very easy program. Let us see
00:29
how to create it.
00:51
Let us save it.
00:59
I will take a variable x here, use a printf statement, enter a number and I will use what
01:17
is scanf %d,%x. Now we will apply the Switchcase. If the value of x is 1, so what it should
01:37
display? 1. Then what break? If the case is 2, then what it should display? 2. Then what
01:55
break? If the case is 3, then what it should display? 3. Then what break? If any other
02:11
number, if you have input from the keyboard, so what it should display? Wrong number. I
02:24
hope everything is fine here. Let us run and see is it giving the correct result or
02:30
not. I will click on the build. It's showing with UIN0 warning. I will run the program,
02:39
input the value 3, so what it should display? 3. If I run one more time by inputting 2,
02:50
it's displaying 2. When I input here what inside x what 2, so switch 2. It will come to the case
03:01
label 2. This case 2 and it will display 2 and by break statement the program will end. Suppose
03:15
if I input any other number, suppose 8, it should display what? Wrong number.
Recommended
3:16
|
Up next
Learn Programming Technique C to MasterĀ Skills - First Program of Function ( Continue ...)
Tutorials Arena
11/3/2024
5:36
Learn Programming Technique C to Master Skills - Switch Case Program ( Use of Integer Value)
Tutorials Arena
10/19/2024
2:44
Learn Programming Technique C to Master Skills - Switch Case Program ( Use of Character Value)
Tutorials Arena
10/19/2024
3:37
Learn Programming Technique C to Master Skills - Pointers And Arrays Program ( Continue...)
Tutorials Arena
11/9/2024
12:06
Learn Programming Technique C to Master Skills - Continuous If Statement Program
Tutorials Arena
10/8/2024
3:21
Learn Programming Technique C to Master Skills - Third Program - Call by Reference (continue...)
Tutorials Arena
11/8/2024
5:36
Learn Programming Technique C to Master Skills - Selection Sort ( Continue...)
Tutorials Arena
11/1/2024
5:29
Learn Programming Technique C to Master Skills - Continuous If Program (Flow Chart)
Tutorials Arena
10/8/2024
9:09
Learn Programming Technique C to Master Skills - Second Program( Call by Reference)
Tutorials Arena
11/8/2024
4:39
Learn Programming Technique C to Master Skills - If... else if Statement Program (Flowchart)
Tutorials Arena
10/8/2024
4:57
Learn Programming Technique C to Master Skills - Loop With If Statement Program ( Flow Chart )
Tutorials Arena
10/13/2024
2:58
Learn Programming Technique C to Master Skills - Nested If Statement Program (Flow Chart)
Tutorials Arena
10/12/2024
7:56
Learn Programming Technique C to Master Skills - Nested If Statement Program
Tutorials Arena
10/12/2024
6:52
Learn Programming Technique C to Master Skills - Fourth Program - (Call by Reference - continue..)
Tutorials Arena
11/8/2024
4:54
Learn Programming Technique C to Master Skills - Single If Statement Program (Flow Chart)
Tutorials Arena
10/12/2024
4:25
Learn Programming Technique C to Master Skills - Bubble Sort ( Continue .... )
Tutorials Arena
10/20/2024
12:54
Learn Programming Technique C to Master Skills - Program of Multiplication of two Matrices ( Continue ...)
Tutorials Arena
10/20/2024
4:57
Learn Programming Technique C to Master Skills - Loop with If Statement Second Program Continue...
Tutorials Arena
10/17/2024
8:32
Learn Programming Technique C to Master Skills - If .... else if Statement Program
Tutorials Arena
10/8/2024
10:56
Learn Programming Technique C to Master Skills - Loop With If Statement Program
Tutorials Arena
10/13/2024
9:14
Learn Programming Technique C to Master Skills - Fourth Program (Call by Reference)
Tutorials Arena
11/8/2024
2:34
Learn Programming Technique C to MasterĀ Skills - Second Program of Function ( Return Val) - I
Tutorials Arena
11/3/2024
5:59
Learn Programming Technique C to Master Skills - File Handling Second Program (Continue..)
Tutorials Arena
11/18/2024
7:12
Learn Programming Technique C to Master Skills - Third Program (Passing Entire Array in Function)
Tutorials Arena
11/9/2024
4:25
Learn Programming Technique C to Master Skills - Linked List ( Add Node Program ) Continue...
Tutorials Arena
11/30/2024