Question: What follows is a C program. # include int a; int bar ( int x , int y ) { int b; return b =

What follows is a C program.
# include
int a;
int bar(int x, int y)
{
int b;
return b = x+y;
}
int main()
{ int *p;
p =(int *) malloc (sizeof(int));
*p = bar (8,9);
}In the above program,
(i)which variables are static variables?
(ii) Which variables are stack dynamic variables?
(iii) And which variables are explicit-heap dynamic variables?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!