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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:03:31+00:00 2026-05-21T09:03:31+00:00

Well I have been reading quite a lot sources but they differ in definiton:

  • 0

Well I have been reading quite a lot sources but they differ in definiton:

  • && is logical operator of logical
    conjunction //I guess this is correct

  • && is operator of logical AND //I
    think this is not precise from
    technical point of view

  • && is
    conditional operator performing
    logical AND //I think this is right
    as well

While all are correct in terms of understanding, I would say the first one is most precise. Or am I mistaken?

  • 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-21T09:03:32+00:00Added an answer on May 21, 2026 at 9:03 am

    In C#, Java, C++, C, and probably several other languages, && is a programming language implementation of the boolean AND operator. It is designed to account for the following facts (that do not apply in pure propositional logic):

    • Evaluating an operand may be computationally expensive
    • Evaluating an operand may fail with an exception
    • Evaluating an operand may enter an infinite loop

    So a boolean expression in a programming language really has four possible outcomes: true, false, “exception”, and “infinite loop”. In some situations, one has two boolean expressions where the possible success of the second expression can be determined by looking at the first expression. For instance, with the expressions foo != null and foo.bar == 42, we can be certain that if the first expression is false, then the second expression will fail. Hence, the && operator is designed to be “short-cirquited”: If the left operand evaluates to false, the right operand is not evaluated. In all cases where both operands would evaluate successfully to true or false, this rule produces the same result as if one actually had evaluated both operands, but it allows for increased performance (because the right operand might not need to be evaluated at all) and increased compactness without sacrificing safety (if one takes care to structure the expression such that the left operand “guards” the right one). Similarly, || will not evaluate the right operand if the left operand evaluates to true.

    A shorter answer is that although && is strongly inspired by AND, it is designed to take certain programming peculiarities into account, and a && b should perhaps rather be phrased as “an expression that returns false if a is false, and the value of b if a is true”.

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

Sidebar

Related Questions

I have been to the zotonic docs , but well, they have not really
I have been using LinqToSQL for quite a while as well as using Devart,
Similar questions have been asked but cannot find a solution that works well. What
Over the past week or so I have been reading a lot of articles
I have been reading numerous books on iPhone development and doing the examples but
I have been reading a lot about test-driven development and decided that I want
It's been quite some time, I have been programming in C/C++, but some areas
I have been reading a lot of the posts on here and surfing the
Well I have been writing in the same style for awhile now and all
The differences between StringBuilder and StringBuffer in Java are well documented and have been

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.