Question: C language int a 0; GLobal-accessible anywhere in file. void test (int b) Parameter. static int c- 0; int d - 0; //Static - retains
C language

int a 0; GLobal-accessible anywhere in file. void test (int b) Parameter. static int c- 0; int d - 0; //Static - retains its value over successive function calls //Local if(b>_ 0) { int e; // Local inside block (at top of block) -ANSI C99 only. e-a b+ c+ d; // a,b,c,d are accessible anywhere in test //e is accessible only after this declaration inside the if printf ("e-%d ", e); printf C" c-%d ", c); int main O // "" is accessible in all functions in the file. test (1); test (2); Exercise 2.9: Hand-execute the code above and predict what gets printed out in your README. Do you think static variables are stored on the stack? Why or why not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
