Question: 6. Write a C program that reads two decimal numbers x and n from the user, and prints true if the nth bit of x
6. Write a C program that reads two decimal numbers x and n from the user, and prints "true" if the nth bit of x is a '1' and "false" otherwise. For example, if the user enters 17 and 0, the program should print "true" because 17 is 10001 in binary and bit 0 is a '1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
