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
Q: But operator overloading makes class look ugly; isn't it assumed to make my code clearer? A: Operator overloading makes life simpler for the users of a class, not for develop

write a program to accept ten numbers and display the total

c program for padovan string   Padovan series are positive integers obtained by the following process: The Padovan series is the sequence of integers P(n) defined by the

Templates permit to create generic functions that admit any data type as parameters and return value without having to overload the function with all the possible data types. Until

write a C program that can display the transpose form of a ciphertext matrix.

Working Ordered linked list: • Eachinteger in the queue is stored inside of a QueueItem. The QueueItem contains the integer, and a pointer to the next item in the queue. Fo

Write a C program to input five numbers and print them out on a new line e.g 5, 10, 15, 20, 25 displayed as   5   10   15   20   25 #include stdio.h   void main()   {


Program to design text styles: Write a C program to design different text style char *fname[] = { "DEFAULT font",                                   "TRIPLEX font",

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec