C Language Problem There are more than one wrong things I th

C Language Problem

There are more than one wrong things I think.

Please Explain

Is the following case structure correct? If incorrect - what\'s wrong? double name; switch(name){ease 1: break: case 2: break case 3: break: default:}

Solution

Change datatype of \"name\" to int or change case values to double type

Default keyword should be followed by colon(:)

C Language Problem There are more than one wrong things I think. Please Explain Is the following case structure correct? If incorrect - what\'s wrong? double na

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site