Introduction to Arrays |  ; Creating an integer array named arr of size 10. ; accessing element at 0 index and setting its value to 5. ; access and print value at 0 index we get the output as 5.
#include <iostream> NEW_LINE using namespace std ; int main ( ) { int arr [ 10 ] ; arr [ 0 ] = 5 ; cout << arr [ 0 ] ; return 0 ; }