Question: #include int a , b; int p ( void ) { int a , p; a = 0 ; b = 1 ; p =

#include int a, b; int p(void){ int a, p; a =0; b=1; p=2; return p; } void print( void){ printf(%d
%d
,a,b); } void q(void){ int b; a=3; b=4; print(); } main(){ a=p(); q(); }
Output in static and dynamic scoping

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 Programming Questions!