Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started