int_to_binary(x) returns the address of the first element of array b, the array's address is a long integer so you can't use it in printf with "%s".
Try: printf("%s\n", *(int_to_binary(x))
Type: Posts; User: EuroDominus
int_to_binary(x) returns the address of the first element of array b, the array's address is a long integer so you can't use it in printf with "%s".
Try: printf("%s\n", *(int_to_binary(x))
You still have to fix line's 15 "if" statement as oogabooga has indicated above.