Solved

program for operator overloading

Posted on 2009-07-07
3
847 Views
Last Modified: 2012-05-07
i want to know how to write the program for operator overloading
0
Comment
Question by:chaitu chaitu
3 Comments
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24796973
C is not the language for operator overloading. You must be thinking C++. Can you clarify what you are trying to do?
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 24796975
I'm not sure what you mean by that, but the C language does not allow operator overloading.

C++ does, so maybe you meant to post it in that zone ?

Could you clarify your question ?
0
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
ID: 24797877
And if you were referring to C++ it really depends on what operator you wish to overload as the syntax and semantics is different for each.

Some references you might find useful
http://www.cs.caltech.edu/courses/cs11/material/cpp/donnie/cpp-ops.html
http://www.parashift.com/c++-faq-lite/operator-overloading.html
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Operators/Operator_Overloading

Note, if you are referring to C and not C++ then (a) these reference will NOT help you and (b) mrjoltcola and Infinity08 have answered your question already :)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now