Welcome

## Write the C programs for the bitwise operations below:                                                                   x = x OR 2^N x = x AND NOT (2^N ) x = x AND 2^N   Hint : Bitmask Operations You can use scanf to read x and N.   SAMPLE INPUT: x=4 , N=2  a) ( x OR 2^N ) = 4 b) (x AND NOT(2^N)) = 0 c) (x AND 2^N) = 0    SAMPLE INPUT x=5 , N=6 a) ( x OR 2^N ) = 69 b) (x AND NOT(2^N)) = 5 c) (x AND 2^N) = 0

1. Write the C programs for the bitwise operations below:
1. x = x OR 2^N
2. x = x AND NOT (2^N )
3. x = x AND 2^N

Hint : Bitmask Operations

You can use scanf to read x and N.

SAMPLE INPUT: x=4 , N=2

1. a) ( x OR 2^N ) = 4
2. b) (x AND NOT(2^N)) = 0
3. c) (x AND 2^N) = 0

SAMPLE INPUT

x=5 , N=6

1. a) ( x OR 2^N ) = 69
2. b) (x AND NOT(2^N)) = 5
3. c) (x AND 2^N) = 0

1. Write a C program to implement the multiplication and division by 2 using the shift operators.

Multiplication input:

Sample input: x=1,N=5

Sample output :  32  [Since 000001 will be 100000 after 5 left shifts]

Division input:

Sample input: x = 32, N=2

Sample output : 8  [Since 100000 will be 001000 after 2 right shifts]

You can use scanf to read x and N.

1. Write a C program to count the no. of 1 to a given input.

Input: 5

Output: 2  [Since 5 has binary format 0101]

Hint :  Shift by 1 bit and then compare the shifted value for 1 or divide the input by 2 and check the dividend.

You can use scanf to read the input.

Tired of numerous paper assignments?
Rely on us and receive professional paper writing assistance!

## Who We Are

We are a professional website for customized writing. If you searched a question and stumbled into our website, you are in the right place to receive assistance with your coursework.

## Do you handle any type of coursework?

Yes. We have displayed prior orders to demonstrate our experience. We can answer this question for you as we have previously. Please fill out our Order Form so that we may ensure its flawlessness. Correctly completing the order form will help our staff with reference, requirements, and future communication.

## Is it hard to Place an Order?

1. Click on the “Order Now” tab at the top menu or “GET A FREE QUOTE” icon at the bottom and a new page will appear with an order form to be filled
2. Fill in the initial requirements in the small order form located on the home page and press “continue” button to proceed to the main order form or press “order” button in the header menu. Starting from there let our system intuitively guide you through all steps of ordering process. Submit detailed paper instructions, upload necessary files if needed and provide your contact information – you are almost done!
3. Proceed with the payment- click on “PROCEED TO CHECKOUT” at the bottom of the page. From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it. All your payments are processed securely through PayPal. This enables us to guarantee a 100% security of your funds and process payments swiftly.
4. Delivery- Once finished, your final paper will be available for download through your personal dashboard. You will also receive an email notification with a copy of your paper attached to it.