in Programming in C closed by
665 views
1 vote
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);
}
in Programming in C closed by
665 views

3 Comments

where is the program?
0
0
added the problem..
0
0

for learning the concept, that question is not good.

https://gateoverflow.in/241093/made-easy

0
0

1 Answer

0 votes
0 votes
by static scoping ans is 31,150

Related questions

7 votes
7 votes
3 answers
3