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 667759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:57:49+00:00 2026-05-13T23:57:49+00:00

I recently encountered with this question: How to reduce this expression: s>73?61:60; . The

  • 0

I recently encountered with this question: How to reduce this expression: s>73?61:60;.

The hint given was that Instead of using conditional operator we could use a simple comparison which will work fine.

I am not sure but I think it is possible with some GCC extension,although I am unable to figure it out myself.

EDIT:The whole expression is this : s-=s>73?61:60

  • 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-13T23:57:49+00:00Added an answer on May 13, 2026 at 11:57 pm

    Just like the other answers:

    s -= (s > 73) + 60;
    

    This expression works because the spec defines the results of the relational operators. Section 6.5.8 paragraph 6:

    Each of the operators < (less than), > (greater than), <= (less than or equal to), and >= (greater than or equal to) shall yield 1 if the specified relation is true and 0 if it is false. The result has type int.

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

Sidebar

Related Questions

I recently encountered some code that gcc would not compile without this arg. I
I recently encountered this problem. I found many instances of people asking the question—
I was given this question at a job interview recently and couldn't figure out
Has anyone encountered this error message recently while using FEDEX's shipping rate API?? I've
I recently encountered a situation in some code I am working on that doesn't
I recently encountered an index in a database I maintain that was of the
I am using NetBeans and JSF to do my project. Recently I encountered a
I recently encountered a printing issue in Firefox that eventually turned out to be
Recently, I encountered a BEFORE INSERT OR UPDATE trigger on a table. In this
Recently I encountered this puzzle : int main(){ int arr[7]; int b,c,d,a; a=4; printf(%d,arr[?]);

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.