004-003-008
Basic Array Operations
Easy
Problem Description
Basic Array Operations
Learning Objective: Understand basic array operations including element access, modification, and getting length
Overview
Create a program that creates an integer array and performs basic operations (element access, modification, traversal).
Specifications
- Initialize array with 5 integers {10, 20, 30, 40, 50}
- Output the array length
- Output the element at index 0
- Change the element at index 2 to 100
- Output all elements after modification
Output Format
Length: 5
First element: 10
After modification: 10 20 100 40 50
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
