+ 1

What is switch function

31st Oct 2020, 3:38 AM
Vansh Gupta
Vansh Gupta - avatar
4 Antworten
0
Switch function is a pre built-in function of c and many other programming language the mainly use of it is to maximize the number of expectations to the assigned value of variable by user
31st Oct 2020, 5:30 AM
ebrahem hesham
ebrahem hesham - avatar
+ 6
You've already started both c and c++ course. So you should find about switch statement there.
31st Oct 2020, 3:47 AM
Minho
Minho - avatar
+ 5
As Minho 🇰🇷 said, u will be learning switch-case stmts in the c/c++ lesson itself. https://www.sololearn.com/Discuss/58748/?ref=app
31st Oct 2020, 5:01 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
A switch control structure is a statement, not a function. https://en.wikipedia.org/wiki/Switch_statement?wprov=sfla1 Anyway it works like a bunch of 'if else' lined up
31st Oct 2020, 12:56 PM
Davide
Davide - avatar