"Coding is just like talking to a unknown girl. Once you talked to her with guts, the next time you'll never afraid",Really? Yes , try it Now !!!
Everything here is for education and learning purpose only , individual holds rights on outer posts/links etc.
Team Cracking The Code
WAP to Convert Decimal to BInary Without An Extra Memory
#include
void showbits ( int n ) { int i, k, andmask ; for ( i = 8 ; i >= 0 ; i-- ) { andmask = 1 << i ; k = n & andmask ; k == 0 ? printf ( "0" ) : printf ( "1" ) ; } }
No comments :
Post a Comment