Q2.18
MCQ2 marks, −0.5Consider the following three C functions: int *g(void) { int x = 10; return (&x); } int *g(void) { int *px; *px = 10; return px; } int *g(void) { int *px; px = (int*) malloc (sizeof(int)); *px = 10; return px; } Which of the above three functions are likely to cause problems with pointers?
Sign in to save attempts.
Loading…