void func(){ double d; static int si; int i; }; where will be memory allocated for the variables?

  1. all(d,si,i) in stack

  2. d in stack;si in heap;i in stack

  3. d in stack;si in stack;i in heap

  4. d in heap;si in heap;i in stack


Correct Option: B

Find more quizzes: