Computer Science, asked by lokeshmandaley95, 1 month ago

what is switch statement?explane with program​

Answers

Answered by TaehysV
0

Answer:

Sᴡɪᴛᴄʜ sᴛᴀᴛᴇᴍᴇɴᴛ ɪɴ C ᴛᴇsᴛs ᴛʜᴇ ᴠᴀʟᴜᴇ ᴏғ ᴀ ᴠᴀʀɪᴀʙʟᴇ ᴀɴᴅ ᴄᴏᴍᴘᴀʀᴇs ɪᴛ ᴡɪᴛʜ ᴍᴜʟᴛɪᴘʟᴇ ᴄᴀsᴇs. ... Tʜᴇ ᴠᴀʟᴜᴇ ᴘʀᴏᴠɪᴅᴇᴅ ʙʏ ᴛʜᴇ ᴜsᴇʀ ɪs ᴄᴏᴍᴘᴀʀᴇᴅ ᴡɪᴛʜ ᴀʟʟ ᴛʜᴇ ᴄᴀsᴇs ɪɴsɪᴅᴇ ᴛʜᴇ sᴡɪᴛᴄʜ ʙʟᴏᴄᴋ ᴜɴᴛɪʟ ᴛʜᴇ ᴍᴀᴛᴄʜ ɪs ғᴏᴜɴᴅ. Iғ ᴀ ᴄᴀsᴇ ᴍᴀᴛᴄʜ ɪs NOT ғᴏᴜɴᴅ, ᴛʜᴇɴ ᴛʜᴇ ᴅᴇғᴀᴜʟᴛ sᴛᴀᴛᴇᴍᴇɴᴛ ɪs ᴇxᴇᴄᴜᴛᴇᴅ, ᴀɴᴅ ᴛʜᴇ ᴄᴏɴᴛʀᴏʟ ɢᴏᴇs ᴏᴜᴛ ᴏғ ᴛʜᴇ sᴡɪᴛᴄʜ ʙʟᴏᴄᴋ.

Similar questions