Find example to prove function be error

As the title, I wonder if anyone can give examples to prove following functions be errors:
int& abc() { int a = 5; return a; }
int* bcd() { int a = 5; return &a; }
closed account (3qX21hU5)
Homework questions are for YOU to figure out ;)
Topic archived. No new replies allowed.