Ask Question
11 November, 12:15

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

+3
Answers (1)
  1. 11 November, 15:12
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers