You'd want to call the function, and store it into a variable. Also, your function asks for an integer Animals that is never used. And you used assignment instead of equality check.
In all seriousness, the only time you can actually get access to a variable declared inside of a function, from outside of the function; is to return the address of the variable itself and create a pointer towards it, thus gaining access to the variable in its entirety.