
- Home
- Activity Stream
Activity Stream
New Activity ()
Please reload this page to view the 200+ new activity items that have been created.
-
Older Activity
-
Yesterday, 11:12 AM
Hi all,
I'm new to the C language, trying to do an exercice where I have to print the "fifth" bit of a given number (0 to 255).The condition of...
2 replies | 83 view(s)
-
Today, 03:21 AM
#include <stdio.h>
int main() {
for (unsigned i = 0; i < 255; ++i)
printf("The fifth bit of %u is %u\n", i, (i / 16) % 2);
//printf("The...
2 replies | 83 view(s)
-
Today, 03:11 AM
You have not explained what is wrong, but your code effectively shifts the input integer five times to the right and then extracts the rightmost bit....
2 replies | 83 view(s)
|
Click Here to Expand Forum to Full Width
|