I'm making a list of computer architecture and one of the first exercises is pretty basic:
What is the minimum amount of bits needed to represent each of the unsigned decimal numbers in binary?
a) 4095
b) 65534
c) 42319
I...
My question is regarding the following snippet of code:
#include <stdio.h>
int main(void){
int teste = 0, x0 = 0, x1 = 0, x2;
x2 = 1;
teste = ((x0|x2) | (x1|x2) << 1);
printf("Valor de teste: %d ", tes...
I'm having difficulty in the following exercise
Using the right shift operator, the AND operator on bits, and a mask, write a function called uncompressingCharacters that receives the integer
unsigned and unzip it into two characters fro...