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, 22.06.2019 06:00
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
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, 19.11.2019 21:31
question
World Languages, 19.11.2019 21:31
question
Mathematics, 19.11.2019 21:31
question
Mathematics, 19.11.2019 21:31
Questions on the website: 13722362