0% found this document useful (0 votes)
26 views

Array Implementation

The code defines two integer arrays arr1 of size 10 and arr2 of size n where n is initialized to 10. It returns 0 after declaring the arrays.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Array Implementation

The code defines two integer arrays arr1 of size 10 and arr2 of size n where n is initialized to 10. It returns 0 after declaring the arrays.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

#include <iostream>

using namespace std;

int main()

// array declaration by specifying size

int arr1[10];

// With recent C/C++ versions, we can also

// declare an array of user specified size

int n = 10;
int arr2[n];

return 0;

// This code is contributed by sarajadhav12052009

You might also like