Bitwise Operators Example Program in Dart


Example Program:

Here is the simple program for printing basic example of bitwise operators in dart.

Source Code

void main() {
   var a,b;
   a=2; //0010
   b=25; //0011
   print('Bitwise & : ${a&b}');
   print('Bitwise | : ${a|b}');
   print('Bitwise ^ : ${a^b}');
   print('Bitwise Not : ${~b}');
}  
To download raw file Click Here

Output

Bitwise & : 0
Bitwise | : 27
Bitwise ^ : 27
Bitwise Not : -26


Learn All in Tamil © Designed & Developed By Tutor Joes