Read input bytes from a binary file and convert the bytes to the corresponding hex value to derive the final integer, string and float values. Tried ...
Read input bytes from a binary file and convert the bytes to the corresponding hex value to derive the final integer, string and float values. Tried ...
I created 2 complex types BitsByte variable pointers and initially set them to nullptr. One will hold the uppers Byte of the word and the other will h ...
I have a very basic question. Lets say I have two variables(uint16_t a, uint16_t b) and in memory they are aligned next to each other like a=> 0x0 ...
We have given a number and we have to flip its 0's and 1's in its binary form and after flipping it we have to written resultant decimal number of tha ...
Suppose : No = 77 77 in binary [32 bits] : 0000 0000 0000 0000 0000 0000 0100 1101 I have to swap first and last nibble: i.e : ...
Legal operators ! ~ & ^ | << >> I have tried this code: But output was not always as expected ...
I've found such numbers time and time again in verilog and digital logic exercises, but I don't know how I'm supposed to know what number this is or h ...
I stumbled upon this simple line of code, and I cannot figure out what it does. I understand what it does in separate parts, but I don't really unders ...
I am using shift register with Arduino to increase my Output pins. Here I want to edit each serial bit individualy and store it. In Short I want to co ...
try to understand a code In the following website is a code a scrollers with wave-like movements. In general, I also understand the code very well. Wh ...
Im not expert in python. I want to seee the effect of quantization (bit depth reduction) by converting the image (array) with type of uint8 to uint4 ( ...
I'd like to print the number of combination and not the actual combination of bits. How can I code that? I'm looking forward for some solution. Thank ...
I'm sure the answer is simple but I can't get my head around so I hope you can help me :) I'm trying to print the bits of a unsigned char, here with ...
I am trying to create a simple filtering of records with bit operations by using this manual: https://dev.mysql.com/doc/refman/8.0/en/bit-functions.ht ...
Suppose an 8-bit fixed point number x, where 7 bits are allocated to the fractional part and 1 bit to the integer part. How can I calculate the bigges ...
Thanks ahead of time... I realize there are questions similar to this for Windows. In fact, I have a version of my code working in Windows that "manua ...
Coming from PLC I'm used to being able to write an individual bit. if I want to write to the third bit of a byte I do the following: Is there a sim ...
I've stumbled across a problem: How many bits are needed to address a 10kB data memory if one cell is 1 byte in size? so when I try to solve this qu ...
In the following question :How to find tag bit in cache given word address They have found the number of tag bits by 32 - number of index bits - word ...
How to efficiently enumerate bit vectors of length N such that no two adjacent bits are set simultaneously, using only bit operations (not recursion)? ...