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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:06:58+00:00 2026-05-25T02:06:58+00:00

My C++ teacher thinks that the * operator in standard C++ is already overloaded,

  • 0

My C++ teacher thinks that the * operator in standard C++ is “already overloaded,” because it can mean indirection or multiplication depending on the context. He got this from C++ Primer Plus, which states:

Actually, many C++ (and C) operators already are overloaded. For example, the * operator, when applied to an address, yields the value stored at that address. But applying * to two numbers yields the product of the values. C++ uses the number and type of operands to decide which action to take. (pg 502, 5th ed)

At least one other textbook says much the same. So far as I can tell, this is not true; unary * is a different operator from binary *, and the mechanism by which the compiler disambiguates them has nothing to do with operator overloading.

Who is right?

  • 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-25T02:06:58+00:00Added an answer on May 25, 2026 at 2:06 am

    Both are right as the question depends on context and the meaning of the word overloading.

    “Overloading” can take a common meaning of “same symbol, different meaning” and allow all uses of “*” including indirection and multiplication, and any user-defined behavior.

    “Overloading” can be used to apply to C++’s official operator overloading functionality, in which case indirection and multiplication are indeed different.

    ADDENDUM: See Steve’s comment below, on “operator overoading” versues “token overloading”.

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

Sidebar

Related Questions

My teacher's notes said There is a tags file that can be built which
My teacher asked me to do a program using execlp that will do the
My teacher told us that there is a default class in Java for binary
A sysadmin teacher told me one day that I should learn to use make
I am trying to create a UITableView that lists each teacher in my school
I have a table Teacher that contains a TeacherPIN as well as a table
I am learning visual basic online, however we just got a teacher switch and
This IS NOT homework, but it is a practice that the teacher gave us
I am working on an application where I can have Teacher, Student etc role.
I'm developing a Rails 3 application that has two user types: Teacher and Company.

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.