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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:07:09+00:00 2026-05-10T15:07:09+00:00

In what order are the following parameters tested (in C++)? if (a || b

  • 0

In what order are the following parameters tested (in C++)?

if (a || b && c) { } 

I’ve just seen this code in our application and I hate it, I want to add some brackets to just clarify the ordering. But I don’t want to add the brackets until I know I’m adding them in the right place.

Edit: Accepted Answer & Follow Up

This link has more information, but it’s not totally clear what it means. It seems || and && are the same precedence, and in that case, they are evaluated left-to-right.

http://msdn.microsoft.com/en-us/library/126fe14k.aspx

  • 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. 2026-05-10T15:07:09+00:00Added an answer on May 10, 2026 at 3:07 pm

    From here:

    a || (b && c) 

    This is the default precedence.

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

Sidebar

Related Questions

I want to order grades that are a string in the following order. K,
Dear Folk's i'm using the following code in order to send the bytes of
Given following parameters: Sample size: 16 Channel count: 2 Codec: audio/pcm Byte order: little
I've been following this tutorial (lesson 6) in order to build and deploy a
Consider the following code; it's basically a form that sends some data via HTTP
I am following this excellent article in order to create my own attribute in
I'm using ctypes and I've defined this struct in order to pass parameters class
I have HTML which includes scripts in following order <script src=../static/js/jquery.js type=text/javascript> <script src=../static/js/bootstrap.js
So we're required to use the following order for CSS anchor pseudo-classes a:link {
I have the following table: Order Product Price Quantity Description Order1 Product1 12 1

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.