Because you are returning the EXIT_SUCCESS and assigning that into the month variable and then printing it.