All pastes #1671360 Raw Edit

bitwise things

public c v1 · immutable
#1671360 ·published 2009-11-14 18:36 UTC
rendered paste body
#include <stdio.h>int main(int argc,char **argv){	int n = 125;		unsigned int i;	//i = 1<<(sizeof(n) * 8 - 1);	i = 128;	printf("%i\n",i);		while (i > 0) {		if (n & i)			printf("1");		else			printf("0");		i >>= 1;	}		printf("\n");		return 0;}//gcc -Wall caminhobinario.c -o caminhobinario