answersLogoWhite

0

The operator required to call c function using object name is function object. Other operator names that deal with objects are structure dereference, structure reference, and indirection

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How operator overloading differ from function overloading?

Function overloading is multiple definition with different signatures(the parameters should be different) for the same function. The parameter list have to be different in each definition. The compiler will not accept if the return type alone is changed. Operator overloading is defining a function for a particular operator. The operator loading function can not be overloaded through function overloading.


How do you define power function without using operator?

using pow() function.. ..


Why ostream operators not overloaded using member functions?

Consider the following line: cout<<obj; where obj is the object of Demo class. In this case we are overloading "<<" operator. But overloading the binary operator using member function, the left hand operand should be the object of relevant class. Here in this case left hand side operand is not the object of Demo class. It is object of ostream class. Hence we cant overload ostream operators using member function. But we can overload these type of operators using friend functions. Thanks, Prof. D. H. Ingole


How do you add two numbers with out using operator in c language?

Not possible. Of course you can call a function which does the addition for you, but function-calling is also an operator in C.


Why a friend function cannot be used to overload the assignment operator?

Assignment(=) operator is a special operator that will be provided by the constructor to the class when programmer has not provided(overloaded) as member of the class.(like copy constructor). When programmer is overloading = operator using friend function, two = operations will exists: 1) compiler is providing = operator 2) programmer is providing(overloading) = operator by friend function. Then simply ambiguity will be created and compiler will gives error. Its compilation error.


What is the use of new operator?

A new operater is used to allocating a memory space for a particular object.


How do you invoke method by using object of the class?

If you have and object with method described within its class you can use dot access operator, for instance:myObject.DoSomething();


Explain the purpose of new and delete operator?

The new operator instantiates a named object of a given type while the delete operator destroys an object. The new operator invokes the object's default constructor unless directed to invoke a specific constructor. The delete operator always invokes the object's destructor.


Is it possible to compare the return value of a function call with another value using a relational operator?

pancakes


How do you add a timer function to object in object oriented programming AS3?

http://theflashblog.com/?p=231 Basically create the timer, give it an event listener, and a function. Change your object using the function and start the timer.


Program for new and delete operator using c plus plus?

#include<iostream> struct object { int m_data; }; void main() { object obj=new object; obj.m_data = 42; delete( obj ); return( 0 ); }


Can solve the harmonic oscillator expectation value?

The expectation value of an operator in the harmonic oscillator can be calculated by using the wave functions (eigenfunctions) of the harmonic oscillator and the corresponding eigenvalues (energies). The expectation value of an operator A is given by the integral of the product of the wave function and the operator applied to the wave function, squared, integrated over all space.