locked
switch cases RRS feed

  • Question

  • can we use floating pt variables in switch cases
    Saturday, September 15, 2007 4:41 AM

Answers

  • you can use only integers and characters in switch case ......
    Saturday, September 15, 2007 4:49 AM

All replies

  • you can use only integers and characters in switch case ......
    Saturday, September 15, 2007 4:49 AM
  • you can use only integers and characters in switch case ......



    cheers
    nana
    Saturday, September 15, 2007 4:50 AM
  •  bo_boys_c80f0f wrote:
    can we use floating pt variables in switch cases


    why dont u write a program and try wats happening..
    and try to find why it is happening...??

    then u ll understand much more...
    Monday, September 17, 2007 12:55 PM
  • Try and learn should be the first step to solve the problem, and the questions should be asked; )
    Monday, September 17, 2007 2:53 PM
  • NO we can't able 2 use floating points in switch case ya...

    Monday, September 24, 2007 3:00 PM