Question: Consider the following program, which consists of two object modules: 1 / * foo 6 . c * / 2 void p 2 ( void
Consider the following program, which consists of two object modules:
fooc
void pvoid;
int main
p;
return ;
barc
#include
char main;
void p
printfxx
main;
When this program is compiled and executed on a Linux system, it prints the string
x
and terminates normally, even though p never initializes variable main.
Can you explain this?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
