aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++, Java, and .NET Programming Concepts
  • void func(){ double d; static int si; int i; }; where wil...
Multiple choice technology programming languages

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

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • In the following code variable test1 would be allocated memory on?int func(){int test1 = 10;return test1;}v...
  • The scope of a global variable which is declared as __________ is within the file.
  • Which memory allocation corresponds to non static local variables and call by value parameter variables?
  • When a function is declared __________________, the function is expanded at the calling block.
  • Where are reference types typically allocated
  • In the following code variable test would be created on? static int test;
  • Name of the function which dynamically allocates the memory during the runtime.
  • In ___________ type of function call, the values of the variables in the main program get changed.
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy