Question 4 10 Marks Given Following Declaration Draw Elements Array Organized Stored Memor Q43783957
Question 4 (10 marks) a) Given the following declaration. Draw how the elements of the array are organized and stored in memory [2 m) i. char month() = { ‘J’, ‘A’, ‘N’ }; ii.char name[ ] = “JANE”; b) Based on the question a)i, what is the output of the following statement: printf(“%c”, month [1] +1); [1 m) 0 Write statements that satisfy the following requirements. The sample output is shown in Figure 4, Declare is one dimensional integer array NUM of length 5 Ask the user to enter 5 Integer numbers and store in the array NUM. 13 m) til Display all the elements of the array NUM Intex 5 numbers element 01 element – 1 1 1 element – 2 1 2 element – 3 / 3 element – 4 / 4 Elemente in array NUM are: 1 1 2 3 4 Figure 4: Sample output Show transcribed image text Question 4 (10 marks) a) Given the following declaration. Draw how the elements of the array are organized and stored in memory [2 m) i. char month() = { ‘J’, ‘A’, ‘N’ }; ii.char name[ ] = “JANE”; b) Based on the question a)i, what is the output of the following statement: printf(“%c”, month [1] +1); [1 m)
0 Write statements that satisfy the following requirements. The sample output is shown in Figure 4, Declare is one dimensional integer array NUM of length 5 Ask the user to enter 5 Integer numbers and store in the array NUM. 13 m) til Display all the elements of the array NUM Intex 5 numbers element 01 element – 1 1 1 element – 2 1 2 element – 3 / 3 element – 4 / 4 Elemente in array NUM are: 1 1 2 3 4 Figure 4: Sample output
Expert Answer
Answer to Question 4 (10 marks) a) Given the following declaration. Draw how the elements of the array are organized and stored in…
OR