c bitwise operators
// An simple example for binary digits (bits):
// Example: 01001011
// 0 0 0 0 1 0 1 1
// 128 64 32 16 8 4 2 1
// 00001011 = 64 + 8 + 2 + 1 = 75
int i = 1;
if (i == true && i = 1 || i = 2)
{
//And operator -> &&
//Or operator -> ||
i = i << 1;
i = i >> 1;
//Shift bits to left operator -> <<
//Value of i :
// 0 0 0 0 0 0 0 1 } Value of i = 1
// 128 64 32 16 8 4 2 1 } Values
// 0 0 0 0 0 0 0 1 } Value of i = 2
// 256 128 64 32 16 8 4 2 } Values shifted this way : >>
// i << (number of times) is same as i * (number of times)
//Shift bits to right operator -> >>
//Value of i :
// 0 0 0 0 0 0 0 1 } Value of i = 1
// 256 128 64 32 16 8 4 2 } Values
// 0 0 0 0 0 0 0 1 } Value of i = 2
// 128 64 32 16 8 4 2 1 } Values shifted this way : <<
// i << (number of times) is same as i / (number of times)
}
Also in C:
- pangram program in c
- hello world
- how we can strore a nested structure values in arrays
- c input output
- get current used proxy windows 7
- what is a long long int in c
- how to find length of string in c
- obby übersetzung
- fa fa-facebook
- socket only connection
- C if
- No module named 'vectormath'
- c return
- where is /dev/kvm
- c printf uint32_t
- confirm sweet alert
- int to void* c
- what is chocolatey
- fibonacci in c
- Exception caught by image resource service
- es vocal
- program using if statement in c whether numnber is less eqaul to greater than 50
- mirzapur 2 release date and time
- commentaire c