Ask Question

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

+2
Answers (1)
  1. 23 August, 17:54
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers