I have a question about stack memory usage in C functions. As far as I understand, local variables are stored in the stack memory. Suppose we have a stack size limit of 1KB, and we've written a C function where we declare and initialize multiple variables, potentially exceeding the 1KB limit.
My question is: How can we determine i our unction's stack memory usage exceeds the allocated stack size without?
has anyone experienced exceeding the available stack size inadvertently?
My question is: How can we determine i our unction's stack memory usage exceeds the allocated stack size without?
has anyone experienced exceeding the available stack size inadvertently?

