Operator overloading, C/C++ Programming

Operator Overloading:

When  an  operator  is  used  for  different  operations,  such  process  is  called  operator

overloading.  In C pointer operator * is used to declare pointer variable as well as it is used for multiplication expression Similarly in C++ << is used display values of dissimiller data typewithout defining any format code, like in C. The same operator is also used in bit wise operation.

cout <<77.45;

cout<<This is C++;

Posted Date: 9/20/2012 7:39:26 AM | Location : United States







Related Discussions:- Operator overloading, Assignment Help, Ask Question on Operator overloading, Get Answer, Expert's Help, Operator overloading Discussions

Write discussion on Operator overloading
Your posts are moderated
Related Questions
We move a high quantity of large Video files (200mb - 2 GB each) across the internet. We have a Linux server (ubuntu) hosted in a datacenter (1Gbps) operating an FTP server. Our

Give practice in writing program''s..

Explain the Bit Wise Operations? C language in particular was created to make it easier to write operating systems. The objective was to have a language that provided excellent

Operation on String - C ++ Program: Write a program to define operations on string in c++. class String {    char *char_ptr;   // pointer to string contents    int le

convert BST into sorted doubly linked list

Two numbers to be subtracted using bitwise operations

Multilevel Inheritance In multilevel inheritance there is a parent class , from whom we derive another class . now from this derived class we can derive another class and so on

Question : (a) (i) What is a structure member in C? What is the relationship between a structure member and the structure? (ii) How can structure variables be declared in C?

Program is to check whether the string entered is a palindrome or not: Program is to check whether the string entered is a palindrome or not invoke function from main int p

How to Define a Structure? Structure declarations are rather more complicated than array declarations, ever since a structure must be defined in terms of its individual members