Define the array in main. Pass it to int_to_binary as a parameter, where it will be filled in.