int P[ ] = {12, 14, 16, 18}; int Q[ ] = {20, 22, 24};

ICSE Class 10 Computer Applications PYQ · 2024 Specimen · Section A

2(x)1 Mark · 2024 · Section A · 2024 Specimen

int P[ ] = {12, 14, 16, 18};
int Q[ ] = {20, 22, 24};

Place all elements of P array and Q array in the array R one after the other.

(a) What will be the size of array R[ ] ?

(b) Write index position of first and last element?

Show SolutionHide Solution↓

int R[ ] = {12, 14, 16, 18, 20, 22, 24};

(a) Size of array P[ ] = 4
     Size of array Q[ ] = 3
     Size of array R[ ] = 7 (4 + 3).

(b) Index position of first element is 0.
     Index position of last element is 6.

← Previous questionNext question →

Browse the free Computer Applications sample bank