Question: 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

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

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 ", 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 ", ++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 ", (ptrl+ptr2)); (a) 30 (d) 0x25fef4 (b) 4 (c) Compile error (cannot add two pointers)

Step by Step Solution

3.55 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

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 full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!