Stack size of a function

How to write a C function which will return its stack size ?

Questions by sxchand

Showing Answers 1 - 3 of 3 Answers

visweswararao

  • Oct 27th, 2011
 

main()
{


printf("the stack size is %d",size());

}

int size(void)
{
return top+1;
}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions