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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:05:57+00:00 2026-06-18T02:05:57+00:00

Many languages have a power operator; why doesn’t C++? For example, Fortran and Python

  • 0

Many languages have a power operator; why doesn’t C++? For example, Fortran and Python use ** and is commonly written (in LaTeX, for example) using ^.

  • 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-18T02:05:58+00:00Added an answer on June 18, 2026 at 2:05 am

    C++ does have a power operator—it’s written pow(x, y).

    Originally, C was designed with system software in mind, and
    there wasn’t much need for a power operator. (But it has
    bitwise operators, like & and |, which are absent in a lot
    of other languages.) There was some discussion of adding one
    during standardization of C++, but the final consensus was more
    or less:

    • It couldn’t be ^, because the priority was wrong (and of
      course, having 2. ^ 8 == 256., but 2 ^ 8 == 10 isn’t very
      pleasant either).

    • It couldn’t be **, because that would break existing
      programs (which might have something like x**p, with x an
      int, and p an int*).

    • It could be *^, because this sequence isn’t currently legal
      in C or C++. But this would still require introducing an
      additional level of precedence.

    • C and C++ already had enough special tokens and levels of
      precedence, and after discussions with the numerics community,
      it was concluded that there really wasn’t anything wrong with
      pow(x, y).

    So C++ left things as they were, and this doesn’t seem to have
    caused any problems.

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

Sidebar

Related Questions

Many statically typed languages have parametric polymorphism. For example in C# one can define:
C and many other languages have a conditional (AKA ternary) operator. This allows you
I've often heard the argument (in javascript, but many languages have an eval-like feature)
C++ has std::vector and Java has ArrayList , and many other languages have their
I want to translate text in Indian languages. I have gone through many articles
Many programming languages share generic and even fairly universal features. For example, if you
Do most languages have many different execution engines ?
Many languages have an isNaN() function. I am asking myself: why check for not
Many languages have functions which only process plaintext, not binary. Does this mean that
I know many languages have the ability to round to a certain number of

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.