Question: Consider the code segment given below:'file 1 . c ' #include int a = 1 0 ;extern int b;void func ( ) { a +

Consider the code segment given below:'file1.c'#include int a =10;extern int b;void func(){a++:b++;}'file2.c'#include extern int a 20;int b=30;int main()printf("%d %d", a, b);func();printf("%d %d", a, b);return 0;What will be the output on execution of the code?

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!