Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long l = 100;
- const char b[] = "1100100";
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int l = 100;
- char b[sizeof(int) * 8 + 1];
- ltoa(l, b, 2);
- printf("%sn", b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement