Question: Is this answer correct ? please explain in steps, in c++ int g (void) f int x=10; return (Ex); (Function 2:) int: g (void) f

int g (void) f int x=10; return (Ex); (Function 2:) int: g (void) f int * px; *pxar 10 ; return px; ) (Eunction 3i) int * g (void) I int * Px; px= new int; * px=10; return px; ) Which of the above three functions are likely to canse problems with pointers (e.g. wrong results, garbage values, coupi px = new int; *pxar 10 ; return px; r Which of the above three functions are likely to cause problems with pointers (e.g. wrong results, garbage values, compile or runtime crrar)? All Three Functions Function 1 and Function 3 only Function 2 and Function 3 only Function 2 only Function 3 only Function 1 only Function 1 and Function 2 only A Moving to the next question prevents changes to this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
