Practice # 5.1
In this practice, I have discussed the general use of operators. An operator is a character that represents an action in CPP like mathematical action or boolean action.
In this practice, I have discussed the general use of operators. An operator is a character that represents an action in CPP like mathematical action or boolean action.
#include <iostream>
using namespace std;
int main()
{
// for the new line or jump the new line we us '\n' and 'endl'.
cout<<"This is the operators in C++ lesson program";
cout<<"These Following types of operators in C++ ";
/*
Arithmatic operators
(a+b)
(a-b)
(a*b)
(a/b)
(a%b)
(a++)
(a--)
(++a)
(--a)
Assaignment operator
sum = 54;
Comparison Operators
(a==b)
(a!=b)
(a<=b)
(a>=b)
(a<b)
(a>b)
Logical Operators
&& and operator {(a==b) && (a>=b)}
|| or operator
! not operator (!(a<=b))
Bit wise operator are panding
*/
return 0;
}
Comments
Post a Comment