Answers for "32 bits"

C
2

32bit or 64bit

grep flags /proc/cpuinfo


Explanation(only in linux):
Look for "lm" in the command output. If lm is found in the output, then the CPU is 64-bit. If you don't see lm or see i386, i486, i586, or i686 in the output, then the CPU is 32-bit. Below is an example output of the above line with lm in the information.
Posted by: Guest on September-07-2020
0

bitshift c

int i = 7;    // Decimal 7 is Binary (2^2) + (2^1) + (2^0) = 0000 0111
int j = 3;    // Decimal 3 is Binary         (2^1) + (2^0) = 0000 0011
k = (i << j); // Left shift operation multiplies the value by 2 to the power of j in decimal
              // Equivalent to adding j zeros to the binary representation of i
              // 56 = 7 * 2^3
              // 0011 1000 = 0000 0111 << 0000 0011
Posted by: Guest on January-04-2021

Code answers related to "C"

Browse Popular Code Answers by Language