New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
How to make ~case age>20:statement~ can be activated
c++
switch
0 Votes
7 Answers
25th Jun 2016, 11:45 AM
JS of MC(not C++ || java)
why is 'senior' still outputted in this case? I understand that '42' and 'default' outputs because the criteria matches and there is no break, but 'senior' is still false is it not?
c++
switch
2 Votes
3 Answers
19th Jun 2016, 7:35 AM
Ivan L
Is there a difference in using a switch statement with cases and in using an if statement with else ifs (which have the same conditions as the cases)?
c#
if-statements
switch
1 Vote
6 Answers
16th Jun 2016, 9:26 PM
Klaus
Is there a difference in using a switch statement with cases and using an else statement with else ifs ? - seems like not.
c#
switch
2 Votes
2 Answers
16th Jun 2016, 8:14 PM
Klaus
What's the real difference between switch and else if?
else-statements
javascript
switch
2 Votes
8 Answers
16th Jun 2016, 6:31 PM
Cristina
If we dont use break, why would it compile the cases that dont match
c++
switch
0 Votes
2 Answers
16th Jun 2016, 8:08 AM
Nisarg Uchiha
when we use switch statement
c++
data-types
2 Votes
14 Answers
13th Jun 2016, 9:55 AM
Shivam Sharma
Why is fallthrough disabled in c#?
c#
switch
0 Votes
2 Answers
15th May 2016, 7:07 PM
dustin
Can anyone tell me,please: in what cases do we need to write break after each case ad when we don't need to do that?
java
switch
0 Votes
4 Answers
26th Apr 2016, 4:33 PM
Nastyusha Ilina
Any rule of thumb for using switch vs if-else for performance reasons? Basically like let's say if you need to use switch case if there are more than 4 conditions?
java
switch
-1 Vote
2 Answers
17th Apr 2016, 3:21 AM
Pratul Kumar Singh
So I'm guessing that the default statement doesn't require a break because it's already at the end of the switch statement?
c++
switch
0 Votes
4 Answers
23rd Mar 2016, 9:40 PM
Sara M
I don't really fully get what "case" And "break" are doing -- I'm mainly just copying the code there -- anyone have any helpful hints?
c++
switch
-1 Vote
2 Answers
9th Mar 2016, 12:24 AM
chris
What's the problem in this?
php
switch
1 Vote
8 Answers
6th Mar 2016, 6:36 AM
Varun Sharma
Does switch statement works faster than else if structure.? or both take the same time?
javascript
switch
1 Vote
10 Answers
14th Feb 2016, 3:33 PM
Ru7w1k
Can i use a string in switch?
java
switch
0 Votes
6 Answers
11th Jan 2016, 11:34 AM
Ben Wong
What can be the possible data types for case values?
javascript
switch
1 Vote
2 Answers
11th Jan 2016, 5:57 AM
bhaskar mitra
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
25
26
Next >
Hot today
Help me learn how to use .value in Javascript please!
1 Votes
String
0 Votes
How to get Kotlin certificate here
2 Votes
Array of Object to Object using reduce()
0 Votes
I don't understand why g1, g2 & g3 values is not aligned with Group 1, Group 2 and Group 3 which is the expected output..
0 Votes
The output is not matching the code.
0 Votes
Can't complete lessons on browser
3 Votes
Career in cybersecurity
1 Votes
How are you spost to do animashon
0 Votes
Hi, The new practice didnt work. I check my code , it said 1/2 and stuck, eventhough my code is right. So I cant learn the next
4 Votes