C Programming Tutorial # 15 - switch statement - Part 2 [HD]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,335
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 24, 2010

[Part 2] Visit http://www.CPlusPlusTutor.com

In this tutorial you will continue to learn about the switch statement and how it is used. It also gives an example code to explain the switch statement.

This tutorial is part of the following series:
http://www.youtube.com/view_play_list?p=CB9F975ECF01953C

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Learnorama)

  • 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 Unfortunately not. It sure would be great to be able to do so, but unfortunately switch works on numeric and character data types.

  • 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 Nawar, you sure can.

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more