Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider a compiler where int takes 4 bytes, char takes 1 byte and pointer takes

ID: 3709609 • Letter: C

Question

Consider a compiler where int takes 4 bytes, char takes 1 byte and pointer takes 4 bytes. 1. #include 2. 3. int main() 4 5. int arri]1, 2,33; int *ptriarri; 7. 8 char arrc] 1, 2,3; char *ptrc-arrc; 10. 11. 12. 13. 14, 15, 16. 17. 18. printf("sizeof printf("sizeof arr|[]-%d", sizeof(arri)); ptr?-%d", sizeof(ptri )) ; printf("sizeof printf("sizeof arrc [ ] -%d ", sizeof (arrc)); ptrc-%d", sizeof(ptrc)); return 0; sizeof arril-12 sizeof ptri 4 sizeof arrcl-3 sizeof ptrc 1 sizeof arrill-3 sizeof ptri 4 sizeof arrc 3 sizeof ptrc 1 sizeof arrill-3 sizeof ptri 4 sizeof arrc 3 sizeof ptrc -4 sizeof arrill-12 sizeof ptri 4 sizeof arrc-3 sizeof ptrc-4

Explanation / Answer

ANSWER:-

OPTION (D) sizeof arri[] = 12 sizeof ptri = 4 sizeof arrc[] = 3 sizeof ptrc = 4

  

  

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote