5. A cross-compiler converts an embedded 'C' program to (a) The machine code corresponding to the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5. A cross-compiler converts an embedded 'C' program to (a) The machine code corresponding to the processor of the PC used for application development (b) The machine code corresponding to a processor which is different from the processor of the PC used for application development 6. 'ptr' is an integer pointer holding the address of an integer variable say x which holds the value 10. Assume the address of the integer variable x as Ox12ff7c. What will be the output of the below piece of code? Assume the storage size of integer is 4 ptr+=2; //Print the address holding by the pointer printf("0x8x\n", ptr); (a) 0x12ff7c (b) 0x12ff7e (c) 0x12ff84 (d) None 8. 'ptr' is a char pointer holding the address of a char variable say x which holds the value 10. Assume the address of the char variable x as 0x12ff7c. What will be the output of the below piece of code? //Print the address holding by the pointer printf ("0x%x\n", ++ptr); (a) 0x12ff7c (b) 0x12ff7d (c) 0x12ff80 (d) None 9. 'ptrl' is a char pointer holding the address of the char variable say x which holds the value 10. 'ptr2' is a char pointer holding the address of the char variable say y which holds the value 20. Assume the address of char variable x as Ox12ff7c and char variable y as Ox 12ff78. What will be the output of the following piece of code? //Print the address holding by the pointer printf("%x\n", (ptrl+ptr2)); (a) 30 (d) 0x25fef4 (b) 4 (c) Compile error (cannot add two pointers) 5. A cross-compiler converts an embedded 'C' program to (a) The machine code corresponding to the processor of the PC used for application development (b) The machine code corresponding to a processor which is different from the processor of the PC used for application development 6. 'ptr' is an integer pointer holding the address of an integer variable say x which holds the value 10. Assume the address of the integer variable x as Ox12ff7c. What will be the output of the below piece of code? Assume the storage size of integer is 4 ptr+=2; //Print the address holding by the pointer printf("0x8x\n", ptr); (a) 0x12ff7c (b) 0x12ff7e (c) 0x12ff84 (d) None 8. 'ptr' is a char pointer holding the address of a char variable say x which holds the value 10. Assume the address of the char variable x as 0x12ff7c. What will be the output of the below piece of code? //Print the address holding by the pointer printf ("0x%x\n", ++ptr); (a) 0x12ff7c (b) 0x12ff7d (c) 0x12ff80 (d) None 9. 'ptrl' is a char pointer holding the address of the char variable say x which holds the value 10. 'ptr2' is a char pointer holding the address of the char variable say y which holds the value 20. Assume the address of char variable x as Ox12ff7c and char variable y as Ox 12ff78. What will be the output of the following piece of code? //Print the address holding by the pointer printf("%x\n", (ptrl+ptr2)); (a) 30 (d) 0x25fef4 (b) 4 (c) Compile error (cannot add two pointers)
Expert Answer:
Answer rating: 100% (QA)
The detailed answer for the above question is provided below answer 5 b The machine code corresponding to a processor which is different from the processor of the PC used for application development 6 ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these electrical engineering questions
-
Can someone help me with physics? I would appreciate any help someone can give me. An explanation would greatly help my understanding of the topic. At launch the space shuttle weighs 4.5 million...
-
Can you help me create a financial statement for year ending July 31, 20xx, based on the information below. This is based on a practice case study, but I need help putting this info in a financial...
-
Can you help me to write a research paper in strategic management: Topics :New technology help the organization to survive The following items should be included in the literature review:...
-
Which of the theoretical approaches are the most useful in explaining your organisations current IHRM policies and practices?
-
Jim Hensons popular characters, the Muppets, starred in the movie Muppet Treasure Island, in which Hensons production company introduced a new charactera wild boar named Spaam. Hormel Foods, which...
-
Figure 14.21 represents the approximate shape of a natural stream channel with levees built on either side. The channel is earth with grass cover. Use n = 0.04. If the average slope is 0.000 15,...
-
The board of directors of Beta North America, Inc., authorizes the issuance of \(\$ 1\) million of \(9 \%, 20\)-year bonds payable. The semiannual interest dates are March 31 and September 30. The...
-
The following data were taken from the balance sheet of Beatty Company: a. Determine for each year (1) the working capital, (2) the current ratio, and (3) the quick ratio. Round ratios to one decimal...
-
1. Is the process by which correctional clients are selected discriminatory? 2. What might be done to reduce actual or perceived discrimination? Michael Santos served a very long sentence for his...
-
Bill Jovi is reviewing the cash accounting for Nottleman, plc, a local mailing service. Jovis review will focus on the petty cash account and the bank reconciliation for the month ended May 31, 2022....
-
Findlay David set up in business as landscape gardener on 1 June 2020. The following represents the business transactions of the first month. 1. Findlay paid 40,000 into the business bank account. 2....
-
An ultrasonic thickness gauge (UTG) uses ultrasound waves to determine the thickness of solid materials. Figure 7 shows the UTG on a copper block of thickness x. Figure 7 copper block UTG. ultrasound...
-
Spin Cycle Architecture uses three activity pools to apply overhead to its projects. Each activity has a cost driver used to allocate the overhead costs to the projects. The activities and related...
-
4. (10 points) Write a method body for the Natural Number instance method whose contract is given below. Note that this is a restores-mode parameter. For full credit, you must use only one return...
-
Create a Flowchart base on this :Dg = 1 5 0 ; Vd = 5 0 ; ke = 0 . 4 ; ka = 1 . 6 ; % % % answer for part a ) t = 0 ; count = 1 ; % values for Cp array index while ( t < 1 0 ) Cp ( count ) = ( ( Dg *...
-
Sheridan Inc. has the following transactions during August of the current year. Indicate (a) the effect on the accounting equation and (b) the debit-credit analysis: (For Column A, List the entries...
-
Create a 6 - 8 slide PowerPoint presentation in response to a situation presented in a scenario. Outline the goals of a project to address diversity issues and describe the desired characteristics of...
-
Why is it necessary to study the diffusion of molecules in biological systems?
-
Phil and Linda are 25-year-old newlyweds and file a joint tax return. Linda is covered by a retirement plan at work, but Phil is not. a. Assuming Phil's wages were $27,000 and Linda's wages were...
-
Harold Conners (Social Security number 785-23-9873) lives at 13234 DeMilo Drive, Houston, TX 77052, and is self-employed for 2012. He estimates his required annual estimated tax payment for 2012 to...
-
Ken paid the following amounts for interest during 2012: Qualified interest on home mortgage...........................................$4,700 Auto loan...
-
a. Who may bring suit under the 1934 Securities Exchange Act? b. Is the basis for action the same as in a 1933 Act suit? Explain.
-
What are the responsibilities of the plaintiff and the defendant in a 1933 Act suit?
-
Under what circumstances will a statement be presumed to be misleading?
Study smarter with the SolutionInn App