Search
 
SCRIPT & CODE EXAMPLE
 

C

print binary c

// Note that u can change this function to print int values
// by changing the type and the sizeof 
void print_bin(unsigned char value)
{
    for (int i = sizeof(char) * 7; i >= 0; i--)
        printf("%d", (value & (1 << i)) >> i );
    putc('
', stdout);
}
Comment

PREVIOUS NEXT
Code Example
C :: finding average of elements in array using struct in C? 
C :: class to const void * 
C :: snprintf with malloc 
C :: pygraphviz show 
C :: i765 OPT filing fees october 2 
C :: Sampoo C programming 
C :: vbl share price 
C :: c program structure 
C :: what is implicit typecasting 
C :: how to stop scanf from adding a new line in c 
C :: c local variable 
C :: visual studio code 
Dart :: dart regex for email 
Dart :: flutter text right overflowed 
Dart :: flutter lock screen to portrait mode 
Dart :: media query width flutter 
Dart :: flutter trigger show off keyboard 
Dart :: flutter mediaquery 
Dart :: dart switch 
Dart :: toast flutter 
Dart :: floating action button rectangle flutter 
Dart :: how to disable screen rotation in flutter 
Dart :: random number dart with length 7 
Dart :: dartpad missing browser features 
Dart :: flutter listtile disable 
Dart :: dart super constructor 
Dart :: flutter alertdialog actionsoverflowdirecation 
Dart :: flutter chip delete icon 
Dart :: convert string to double flutter 
Dart :: filterchip flutter 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =