How to use a binary literal in C

1 Answer

0 votes
#include <stdio.h>

int main() {
    int x = 0b00100001;

    printf("%d\n", x);

    return 0;
}


/*
run:

33

*/

 



answered Mar 9, 2025 by avibootz

Related questions

...