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.

 Consider a compiler where int takes 4 bytes, char takes 1

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!