Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

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 a question.

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

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6662391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:23:04+00:00 2026-05-26T02:23:04+00:00

I know the syntax for writing a case break statement, but I’m wondering if

  • 0

I know the syntax for writing a case break statement, but I’m wondering if this is allowed:

CODE:

    case 'p':
    {
    printf("Give number: ");
    scanf("%d, &int_1);
    if int_1=5;{
    printf("Played: you win");
    }
    break;
    }

Basically I’m just wondering if this is something that’s possible to do, I know the code is incomplete but I don’t want anyone to think I’m trying to elicit specific answers. I simply seek a better understanding of applying conditionals to my programs. Thank you.

EDIT: Other than in the tags, I didn’t specify so just in case this isn’t clear, this is in C.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:23:05+00:00Added an answer on May 26, 2026 at 2:23 am

    The short answer is yes, you can nest an if inside of swtich/case statement (or vice versa). If you want to badly enough, you could have a loop containing a switch containing several ifs, etc.

    Bottom line: the limit on nesting various kinds of statements is normally imposed by such considerations as taste and readability, not limitations built into the language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there is some syntax with ? to optionally render attribute. But I
Does anybody know how to do this syntax below in mysql? Without Stored Procedure,
I'm writing a python script that uses this awkward glob syntax. import glob F
I find myself writing this class often in my python code when I need
I'm using the new AAA syntax and wanted to know the syntax to do
Does anyone know of a syntax highlight for Mako templates for Eclipse or for
I would like to know a good syntax for C++ getters and setters. private:
Anyone know what the C# M syntax means? var1 = Math.Ceiling(hours / (40.00M *
Does anybody know how to edit a syntax file for VIM so that keywords
Anyone know of a JS library that will allow me to syntax highlight a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

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.