Ask Question
19 May, 14:40

Is the following example an overloaded operator? Why? struct { string product; float price; } a, b, c; a = b + c;

+5
Answers (1)
  1. 19 May, 17:35
    0
    No.

    Explanation:

    Operator overloading means increasing the functionality of an operator so that it can work beyond what is originally designed for. To implement operator overloading we user operator keyword. It is supported only in C+ + not in C.

    There is no operator keyword used in the code. Hence there is no operator overloading.

    Syntax:-

    Class_name operator (operator symbol) (parameter)

    {

    definition

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Is the following example an overloaded operator? Why? struct { string product; float price; } a, b, c; a = b + c; ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers