MCQs>IT & Programming>System Programming>Is it good programming that the following function call is recursive? void func(unsigned long a) { unsigned long x; struct t_struct[] *p; : p = (struct t_struct *)alloca(a*sizeof(t_struct)); : While (x = f2()) func(x); : return; }
System Programming MCQs
Is it good programming that the following function call is recursive? void func(unsigned long a) { unsigned long x; struct t_struct[] *p; : p = (struct t_struct *)alloca(a*sizeof(t_struct)); : While (x = f2()) func(x); : return; }
Answer
Correct Answer: No, because both stack depth and stack-frame size are unpredictable
Explanation:
Note: This Question is unanswered, help us to find answer for this one