1 1 vote closed as a duplicate of: made easy can anyone explain by using static and dynamic programing ? what will be output for static and dynamic? #include<stdio.h> int x=10; void part1(int *a) { *a+=x++; printf("%d",*a); } void part2(int *b) { static x=15; *b=*b*x; part1(&x); printf("%d",x); } void main(){ part2(&x); part1(&x); } Programming in C + – sushmitha 1.1k views comment Share Follow Print See all 3 Comments 3 3 Comments reply Shaik Masthan commented Sep 10, 2018 reply Follow flag where is the program? 0 0 replyShare sushmitha commented Sep 10, 2018 reply Follow flag added the problem.. 0 0 replyShare Shaik Masthan commented Sep 10, 2018 reply Follow flag for learning the concept, that question is not good. https://gateoverflow.in/241093/made-easy 0 0 replyShare Please log in or register to add a comment.
0 0 votes by static scoping ans is 31,150 bacardi07 answered Jun 26, 2021 bacardi07 comment Share Follow 0 reply Please log in or register to add a comment.