Solved

program for operator overloading

Posted on 2009-07-07
3
846 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

708 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

18 Experts available now in Live!

Get 1:1 Help Now