Question: What are put out by the program scope 4 . c below? Predict the result before running the program to verify your answer. Do the

What are put out by the program scope4.c below? Predict the result before running the
program to verify your answer. Do the global variables a and b get modified in the
program?
scope4.c
#include
8 Tutorial and Practical Exercises
int a =10;
int b =12;
int ftn2(int a);
int ftn(int b);
int main(void)
{
int x = ftn(b);
printf("%d
", x);
return 0;
}
int ftn(int b)
{
b = a;
printf("%d
", b);
return ftn2(a);
}
int ftn2(int a)
{
int c =13;
printf("%d
", a + b);
return ++a;
}

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!