004-002-014

Array Creation: Multiple Arrays

Medium

Problem Description

Array Creation: Multiple Arrays

Learning Objective: Understand how to create multiple arrays and get their lengths

Overview

Create a program that creates two arrays of different sizes and outputs their lengths and total element count.

Specifications

  • Create an integer array named scores (size: 4)
  • Create a char array named grades (size: 6)
  • Output the length of each array
  • Calculate and output the total number of elements

Output Format

Scores length: 4
Grades length: 6
Total elements: 10

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?