Write a program in C++ to create an array of 5 elements and print 2nd and 4th element.
Answers
Answered by
1
Answer:
Access Elements in C++ Array
In C++, each element in an array is associated with a number. The number is known as an arrayindex. We can access elements of an array by using those indices. // syntax to access arrayelements array[index];
Similar questions