Code:
void dosomething(int a){
if (!a) return;
dosomething(a >> 0x1);
printf("%d\",(a & 0x1));
//giving that int a is a positive number