Question: How to read and print out 3 first bits for each line of a binary file in C Ex: input.bin file has: 0000010000000000 # 0x0400

How to read and print out 3 first bits for each line of a binary file in C Ex: input.bin file has: 0000010000000000 # 0x0400 1011010010010010 # 0xB692 0001011010000011 # 0x1483 1001010010010100 # 0x9494

Expected output:

000

101

000

100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!