What is the size of the stack required when the following C-pseudocode is run on A(5)?
A(n)
{
if(n>0)
{
printf("%d", n-1);
A(n-1);
}
}
1
6
2
5
3
4
4
3
What is the size of the stack required when the following C-pseudocode is run on A(5)?
A(n)
{
if(n>0)
{
printf("%d", n-1);
A(n-1);
}
}