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

A: Use std::ios::binary. Some operating systems differentiate among text and binary modes. In text mode, end-of-line sequences and perhaps other things are translated; in binary


Write a Program to illustrate passing structure to function? # include struct customer { int id; char name[15]; }; void func_struct(struct customer); main() { struct c

Explain Processing A Data File? Mainly data file applications needs that a data file be altered as it is being processed. For instance in an application involving the processin

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

I am having trouble declaring a variable and returning a value from my function.

Cross Platform Clinet app for a vpn Project Description: We want a cross platform client app for VPN. The app must have the subsequent options below: 1. Must be an open

C program for bubble sort: void main() { int i,j,k,a[10],n; clrscr(); printf("How many values you want to enter\n"); scanf("%d",&n);  for(i=0;i  {  pri

In general, Roman numerals can be converted mathematically by simply assigning a numerical value to each letter, according to the chart below, and calculating a total: M=1000 | D=5