Closed akshaysparda closed 3 years ago
using namespace std;
int main() { // Creating an integer array named arr of size 10. int arr[10]; // accessing element at 0 index and setting its value // to 5. arr[0] = 5; // access and print value at 0 index we get the output // as 5. cout << arr[0]; return 0; }
include
using namespace std;
int main() { // Creating an integer array named arr of size 10. int arr[10]; // accessing element at 0 index and setting its value // to 5. arr[0] = 5; // access and print value at 0 index we get the output // as 5. cout << arr[0]; return 0; }