subject

Consider the following program, which consists of two object modules: 1 /* foo6.c */ 2 void p2(void); 3 4 int main() 5 { 6 p2(); 7 return 0; 8 } 1 /* bar6.c */ 2 #include 3 4 char main; 5 6 void p2() 7 { 8 printf("0x%x\n", main); 9 } When this program is compiled and executed on an x86-64 Linux system, it prints the string 0x48\n and terminates normally, even though function p2 never initializes variable main. Can you explain this?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which of the following statements correctly identifies a problem with sanitization methods? a. methods are not available to remove data ensuring that unauthorized personnel cannot retrieve data.b. even fully incinerated media can offer extractable data.c. personnel can perform sanitization steps improperly.d. stored data is physically etched into the media.
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
This technology is used to produce high-quality documents that look good on the computer screen and in print. wiki presentation paint desktop publishing
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
You know the right answer?
Consider the following program, which consists of two object modules: 1 /* foo6.c */ 2 void p2(void)...
Questions
question
Mathematics, 07.10.2019 22:30
question
Social Studies, 07.10.2019 22:30
question
Mathematics, 07.10.2019 22:30
question
Mathematics, 07.10.2019 22:30
question
English, 07.10.2019 22:30
Questions on the website: 13722363