Sign Up

Continue with Facebook
Continue with Google
or use

Have an account? Sign In Now

Sign In

Continue with Facebook
Continue with Google
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Continue with Facebook
Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Ansfind

Ansfind Logo Ansfind Logo Ansfind Logo Ansfind Logo
Add question

Ansfind Navigation

  • About Us
  • Groups
    • Add group
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Tags
  • Points
  • Users
  • FAQs
  • Help
  • Contact Us
Wish Lay
Wish Lay
Asked: August 16, 20212021-08-16T20:59:35+05:30 2021-08-16T20:59:35+05:30In: Education and learning

Which of the following is false for switch statement in C++?

Which of the following is false for switch statement in C++?
(1) It uses labels instead of blocks
(2) we need to put break statement at the end of the group of statement of a condition
(3) we can put range for case such as case 1..3
(4) None of these

c++
  • 2
  • 44
  • 2,899
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
Answer

    Related Questions

    • What are copy constructors in C++?
    • What is the difference between Shallow copy and Deep copy?
    • What arithmetic operators cannot be used with strings?

    4 Answers

    • Voted
    • Oldest
    • Recent
    1. Salomi
      2021-08-16T21:09:57+05:30Added an answer on August 16, 2021 at 9:09 pm

      In C++ it will not use labels instead of blocks.

      so the answer is It uses labels instead of blocks

      • 12
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. Anonymous
      2021-11-30T14:56:59+05:30Added an answer on November 30, 2021 at 2:56 pm

      The right answer is:  1) It uses labels instead of blocks.

      In C++ switch statements will not use labels instead of blocks.

      • 4
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. wardah ubaid
      2022-03-13T08:12:02+05:30Added an answer on March 13, 2022 at 8:12 am

      we can put range for case such as case 1…3

      • 2
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. Best Answer
      Meshtha Programmer
      2022-06-25T13:19:51+05:30Added an answer on June 25, 2022 at 1:19 pm

      Answer: (1) It uses labels instead of blocks.

      Explanation:

      According to question Except for option 1 all other options are true according to the switch statement in C++.

      • we need to put a break statement at the end of the group of statements of a condition in the switch statement, C++.
      • we can put a range for switch cases such as cases 1..3 as for the switch statement syntax as shown below.

      switch(expression) {
      case x:
      // code block
                                 break;

                             case y:
                                      // code block
                                break;
                            default:
                                      // code block
                  }

       

      • 2
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Choose from here the video type.

    Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

    Sidebar

    Top Users

    Weboptify

    Weboptify

    • 3,290 Points
    Wish Lay

    Wish Lay

    • 2,358 Points
    Manu Murthy

    Manu Murthy

    • 1,635 Points

    Adv 250x250

    • About Us
    • Home
    • Communities
    • Polls
    • Tags
    • Points
    • Users
    • Help
    • Contact Us
    • Referrals
    • Policies
      • Privacy policy
      • Terms of use
    Revenue

    © 2022 Ansfind. | Designed by Weboptify

    monetization_on category home emoji_events
    search
    help

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.