Stack size of a function

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

Questions by sxchand

Showing Answers 1 - 1 of 1 Answers


  • Oct 27th, 2011


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