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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:25:20+00:00 2026-06-17T06:25:20+00:00

The operator precedence tables just show the bitwise shift operators << and >> .

  • 0

The operator precedence tables just show the bitwise shift operators << and >>. These are the same as the output operators, right?

In fact, it just so happens that C++ overloads these same operators to mean input/output, right? This is more of a tradition than anything more strict, isn’t it?

  • 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-06-17T06:25:21+00:00Added an answer on June 17, 2026 at 6:25 am

    I’m sure the origin of using << and >> as operators for output is to do with two things.

    1. It looks sensible.
    2. The operators << and >> are not that commonly used in “regular code”. So they are available. It would be a real pain if they used operator +, -, * or /, since you couldn’t write cout + "The result is : x + y + endl; and get x + y as the output. It’s much less common than you write cout << "The result is : " << x << y << endl; – in this case, you’d have to use parenthesis: cout << "The result is : " << (x << y) << endl;

    The order of operator precedence is defined by the language, no matter how you use the operators – which is one reason you don’t want to use operator overload to do “strange” things in general – because it’s easy to get something you don’t really expect…

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

Sidebar

Related Questions

So I know that C++ has an Operator Precedence and that int x =
According to this precedence table , the comma operator is left-associative. That is, a,
Possible Duplicate: Problem with operator precedence we know that precedence of prefix is greater
Please note, that this has nothing to do with Operator Precedence.. () and ++
Almost all C/C++ operator precedence tables I have consulted list the ternary conditional operator
I am working on a Parsing logic that needs to take operator precedence into
The operator precedence table I can find is: https://developer.mozilla.org/en/JavaScript/Reference/Operators/Operator_Precedence according to the table, both
Perl has a conditional operator that is the same a C's conditional operator .
I know that array operators have the precedence. Then the binary arthimetic operators *
I'm trying to make a grammar that doesn't have operator precedence, but requires that

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.