Question: Write a C programto distinguish how many empty parts the inputs have. For example, if the input is like: 00001100000000000000 00000100000000000000 00000100000000000000 00111100000000000000 01 000

Write a C programto distinguish how many empty parts the inputs have.

For example, if the input is like:

00001100000000000000 00000100000000000000 00000100000000000000 00111100000000000000 01000100000000000000 10000100000000000000 10000100000000000000 11001100000000000000 01110110000000000000

so 1 empty part.

00111100000000000000 01111110000000000000 01000110000000000000 00111110000000000000 01111110000000000000 11000110000000000000 11000110000000000000 11111111000000000000 01110011000000000000

2 empty parts inside.

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!