In computer engineering, what happens if you return a local variable from a function?
A) The local variable's value is copied and returned safely.
B) The local variable's address is returned, leading to potential undefined behavior.
C) The compiler automatically converts the local variable to a global variable.
D) The function will generate a runtime error.