Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

program for operator overloading

Posted on 2009-07-07
3
Medium Priority
?
856 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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…
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.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

772 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