C Programming Tutorial # 15 - switch statement - Part 2 [HD]
Loading...
4,335
Loading...
Uploader Comments (Learnorama)
see all
All Comments (14)
-
yoooooooooooooou are the best one in the world
big hug
^^_^^
-
very good.
-
@Learnorama Thanks for replying :)
-
@Learnorama thnx
-
@Learnorama Actually CPlusPlusTutor . com Sorry new website ;-)
-
@smartprince20 Thanks for liking the tutorial. Check out my website CPlusPlus . com
Loading...
Can we use strings in switch statement... I mean like u hav used 1 or 2... in the same way can we use eg. color's name or something?????
92MrRocktheworld 1 year ago
@92MrRocktheworld Unfortunately not. It sure would be great to be able to do so, but unfortunately switch works on numeric and character data types.
Learnorama 1 year ago
thank you but i have some questions
1- can we use a loop for "printf("enter a number"); ? is better from write it twice.
2- can we use a char like (+) instead of "press 3 to multip..... ?
i guess we can so i am going to try it because i dont know if you have time to answer
thank you
nawaryoussef1 1 year ago
@nawaryoussef1 Nawar, you sure can.
Learnorama 1 year ago