By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

Function Variable memory is on heap or in stack

P: 96

I want to know wheather the user defined function local variables are stored in the stack or in heap....

For example i have a function add()

int add(int i, int j)
int m ,n;


Where the M and N variable value will be stored wheather in the heap or in the stack....?

and also i think the variable i and j are stored in the stack because where i had declared the prototype of the function add () in the i right?
Mar 9 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,510
have a look at
Mar 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.