21 Nov 2019

  • November 21, 2019
  • Amitraj
2.) Assignment - Operator:- 

    This operator is use to assign the value to operands. It is used to assign a particular value to a variable.

=  (Assignment)- Used to assign a value from right side operand to left side operand.

+= (Addition Assignment)- To store the sum of both the operands to the left side operand.

-= (Subtraction Assignment) – To store the difference of both the operands to the left side operand.

*= (Multiplication Assignment) – To store the product of both the operands to the left side operand.

/= (Division Assignment) – To store the division of both the operands to the left side operand.

%= (Remainder Assignment) – To store the remainder of both the operands to the left side operand.

Related Posts:

  • C++ File and File Modes C++ File and File Modes C++ language allows us to perform important Disk input/output operations such as - -> Creating a new file on the disk. -> Reading the file stored on the disk. -> Writing data to the file st… Read More
  • C++ Error handling during file operations C++ Error handling during file operations -> There are various errors occour while dealing with files- 1. A file which we are attempting to open for reading does not exist. 2. The file name used for a new file may Alre… Read More
  • Different paradiagrams for problem solving Programming paradigm: Programming paradigm means that the fundamental of computer programming. Programming style or methods are changed from language to language. There are three programming paradigm – 1.) Imperative / Proc… Read More
  • C++ File I/O Operations on Characters C++ File I/O Operations on Characters #include<iostream> using namespace std; #include<fstream> #include<cstring> int main() { char string[80]; cout<<"Enter a string:"; cin>>string; int len… Read More
  • Formatted I/O Functions in C++ C++ Formatted I/O Functions -> Formatted console input/output functions are used for performing input/output operations at console and the resulting data is formatted and transformed. -> Some of the most important f… Read More

Translate

Popular Posts