Question

Please answer the following questions for me <3 ; If a machine instruction, e.g. JMP, can...

Please answer the following questions for me <3 ;

If a machine instruction, e.g. JMP, can not specify a segment number then it is using

Select one:

a. explicit segments

b. segment offsets

c. code sharing

d. implicit segments

The primitive data types, double and long

Select one:

a. may or may not be the same size

b. will always be the same size

c. will never be the same size

d. long will always be bigger

Malloc is used to

Select one:

a. free memory to the heap

b. allocate memory from the stack

c. allocate memory from the heap

d. free memory to the stack

Homework Answers

Answer #1

The primitive data types, double and long

Answer: b. will always be the same size

double and long double have the same size in some systems

But in others, long doubles are of greater size

  • may or may not be the same size, will always be the same size, will never be the same size long will always be bigger are all invalid.

Malloc is used to

Answer: c. allocate memory from the heap

malloc is used to allocate a block of memory on the heap. The program accesses this block of memory via a pointer that malloc returns.

When the memory is no longer needed, the pointer is passed to free which deallocates the memory so that it can be used for other purposes.

Other memory allocation functions are

  1. malloc()
  2. calloc()
  3. free()
  4. realloc()

If you have any doubts, leave a comment below and I'll help you out.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1- Many U.S. firms with a large percentage of their revenues derived in foreign countries prefer...
1- Many U.S. firms with a large percentage of their revenues derived in foreign countries prefer to leave their cash outside the United States because using those funds to pay dividends or purchase treasury stock would Select one: a. promote foreign investment. b. require a big U.S. corporate income tax payment. c. create pressure for decreased exporting. d. decrease foreign exchange. e. inflate stock prices. 2- In projected financial statements, what is used as a plug figure? Select one: a....
6) When a country does not meet the requirements of the SGP, it is declared in...
6) When a country does not meet the requirements of the SGP, it is declared in excessive deficit by the Council. What is the sanction imposed Select one: a. Fine of 0.2 per cent of the delinquent’s GDP. Resources are frozen until the procedure is lifted b. Fine of 0.5 per cent of the delinquent’s GDP, and an additional 0.2 per cent of GDP for further non-compliance c. Fine of 0.5 per cent of the delinquent’s GDP. Resources are frozen...
Team 5 answer the questions What are 4 key things you learned about the topic from...
Team 5 answer the questions What are 4 key things you learned about the topic from reading their paper? How does the topic relate to you and your current or past job? Critique the paper in terms of the organization and quality. Incentive Systems             In this paper, we will focus primarily on financial rewards that companies use to attract, retain and motivate the brightest and most talented candidates in the labor market. By providing a reward system that...
Please do not attempt to solve if you can not answer all!!! THE ENERGY BAR INDUSTRY...
Please do not attempt to solve if you can not answer all!!! THE ENERGY BAR INDUSTRY In 1986, PowerBar, a firm in Berkeley, California, single-handedly created the energy bar category. Positioned as an athletic energy food, it was distributed at bike shops and events that usually involved running or biking. The target segment was the athlete who needed an efficient, effective energy source. Six years later, seeking to provide an alternative to the sticky, dry nature of the PowerBar, a...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
I just need the following questions answers Quantitative Research Designs 101 1. Quantitative research attempts to...
I just need the following questions answers Quantitative Research Designs 101 1. Quantitative research attempts to do which of the following? a. Identify, define and measure factors that contribute to a disorder or disease. b. Examine relationships among factors. c. Evaluate the cost-effectiveness of an intervention. d. All of the above 2. Qualitative and quantitative research designs are appropriate to answer different types of public health questions. Which of the following is NOT an objective of qualitative research? a. To...
Outline and answer all discussion questions following case description in details. (Do not attempt to solve...
Outline and answer all discussion questions following case description in details. (Do not attempt to solve if you can not fulfill all the requirements!!!!) THE ENERGY BAR INDUSTRY In 1986, PowerBar, a firm in Berkeley, California, single-handedly created the energy bar category. Positioned as an athletic energy food, it was distributed at bike shops and events that usually involved running or biking. The target segment was the athlete who needed an efficient, effective energy source. Six years later, seeking to...
Answer the following questions from the information below a. What are the organization's marketing goals? b....
Answer the following questions from the information below a. What are the organization's marketing goals? b. What are the symptoms of the problem? In other words, which of the organization's marketing goals mentioned in section a., above are not being met? c. What is the organization's problem? Look at the symptoms and make a judgement about what their cause may be. Do not confuse symptoms with problems. Problems cause symptoms. d. Perform a SW/OT analysis: -What are the organization's internal...
Answer these questions for the case study: Purple Innovation, Inc.: The Online to Offline Marketing Challenge...
Answer these questions for the case study: Purple Innovation, Inc.: The Online to Offline Marketing Challenge (a) Delineate what marketing data analytics and metrics were used by Purple Innovation, Inc to assess the effectiveness of their marketing actions and marketing campaigns. (There are many.) Within your answer, provide the type of analytics and /or metrics and for each one, and, for each one, an example of specific dollars, numbers, percentages that were provided in the case. (Be sure to include...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old man of Scandinavian descent was rushed to the Emergency Room of your local hospital after a family member discovered him unconscious in his home. The woman who dialed “911” told the dispatcher that the man, her brother, was the local librarian of the past 10 years and had no spouse or children. She reported that they had spoken the day before, and he had...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT