Generally variables are stored in heap memory. When he
variables are created in stack?

Answer Posted / rahul

I am not sure about this answer but when you pass any
argument to any recursive or non-recursive function.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are disadvantages of pointers?

833


Which sort does c++ use?

822


Should you pass exceptions by value or by reference?

924


what are the iterator and generic algorithms.

1914


What is abstraction c++?

797


Array base access faster or pointer base access is faster?

2058


Why do we use double in c++?

816


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

838


What is the syntax for a for loop?

828


What do you mean by friend class & friend function in c++?

823


What is the difference between a "copy constructor" and an "assignment operator" in C++?

853


Where and why do I have to put the "template" and "typename" keywords?

806


Can you pass a vector to a function?

752


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

842


What does it mean to declare a destructor as static?

847