Question: 1. Consider array declarations on a 64-bit machine as follows (a) char myArray1 [10] [6]; (b) char* myArray2 [10] [6]; (c) char (*myArray3) [10] [6];
1. Consider array declarations on a 64-bit machine as follows (a) char myArray1 [10] [6]; (b) char* myArray2 [10] [6]; (c) char (*myArray3) [10] [6]; (d) char* (myArray4 [10] [6]); (e) char* (myArray5 [10]) [6]; Answer each questions below for each array declaration (a) Does the declaration compile? If no, why not? (b) How many bytes would the declaration allocate? (c) Would there be a potential bad pointer reference? If yes, why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
