I have a doubt regarding stack in c functions... Here is a program which shows an example...
#include<stdio.h>
int display();
main()
{
int m=display();
printf("m is : %d\n",m);
}
int display()
{
printf("1234\n");
return;
}
outputs:
1234
m is : 5
#include<stdio.h>
int display();
main()
{
int m=display();
printf("m is : %d\n",m);
}
int display()
{
printf("123");
return;
}
outputs
123
m is : 3
Can we not see the contents in stack? If yes how? Please reply me quickly...