Question: What is the output of the program below when compiled using: gcc main.c func.c main.cfunc.c extern int x; extern int y; extern int z; void

What is the output of the program below when compiled using:
gcc main.c func.c
main.cfunc.c
extern int x; extern int y; extern int z; void func(){x = x + y; y =4+ z; z = x + y; }
Group of answer choices
4
20
6
3
Undefined behavior
13

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!