Hey, I am trying to understand the task, but I do not really get it.
I shall write a program that prompts for an integer number and stores it into a variable of data type int. The program should test all bits of this variable by using C langauge bit operators and print the result. (1 = bit set, 0 = bit not set) to stdout. The program must work correctly for any length of the int data type(by using sizeof()).
Tbh I do not really understand the meaning of it. Does it mean I should do a decimal-to-binary conversion by using C language bit operators?
What means "test all bits of the read integer variable"? I means "test" in this case? What should you test?
I do not want you to solve this problem, but maybe you know what this task could mean.