Created
June 23, 2019 05:31
-
-
Save chankruze/670c983ab794d205f7678822116d1b92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * @Author: chankruze (Chandan Kumar Mandal) | |
| * @Date: 2019-06-23 10:41:00 | |
| * @Last Modified by: chankruze (Chandan Kumar Mandal) | |
| * @Last Modified time: 2019-06-23 10:59:47 | |
| */ | |
| #include <stdio.h> | |
| void showbits(int n) | |
| { | |
| for (int i = 8 ; i > 0; i--) | |
| { | |
| n & (1 << (i - 1)) ? printf("1") : printf("0"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment