C++ program to perform the assignment operations
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to perform the assignment operations ——————————————————————————————————————————— Value of a | 0 Value of b | 1 Value of 0 += 1 | 1 Value of 1 -= 1 | 0 Value of 0 *= 1 | 0 Value of 0 /= 1 | 0 Value of 0 %= 1 | 0 Value of 0 ^= 1 | 1 Value of 1 |= 1 | 1 Value of 1 &= 1 | 1 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C++ program to perform arithmetic operations by accepting inputs from a user
C++ program to calculate the area and circumference of a circle
C++ program to find the size of data types
Advertisement