1 / 4

◆本日のチェック◆ 【 1 】 配列を用いると、 1.同じ型の複数の変数を一括で管理 2.繰り返し文を効率的に書くことが 3.異なる型の複数の変数を一括して管理 できます 。

◆本日のチェック◆ 【 1 】 配列を用いると、 1.同じ型の複数の変数を一括で管理 2.繰り返し文を効率的に書くことが 3.異なる型の複数の変数を一括して管理 できます 。. ◆本日のチェック◆ 【 2 】 int[] a; は、 1 . int 型 の 配列要素を 2. int 型の配列 変数を 3. int 型 の 変数を 宣言します 。. ◆本日のチェック◆ 【 3 】 次 のコードを実行したら、 int[] a ; a = new int[10]; 1. 9 個 の配列要素が確保されます。 2 . 10 個 の配列要素が確保されます 。

fran
Download Presentation

◆本日のチェック◆ 【 1 】 配列を用いると、 1.同じ型の複数の変数を一括で管理 2.繰り返し文を効率的に書くことが 3.異なる型の複数の変数を一括して管理 できます 。

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ◆本日のチェック◆ 【1】 配列を用いると、 1.同じ型の複数の変数を一括で管理 2.繰り返し文を効率的に書くことが 3.異なる型の複数の変数を一括して管理 できます。

  2. ◆本日のチェック◆ 【2】 int[] a; は、 1.int型の配列要素を 2.int型の配列変数を 3.int型の変数を 宣言します。

  3. ◆本日のチェック◆ 【3】 次のコードを実行したら、 int[] a; a = new int[10]; 1.9個の配列要素が確保されます。 2.10個の配列要素が確保されます。 3.この時点ではまだ配列要素は確保されません。

  4. ◆本日のチェック◆ 【4】次のコードを実行した後、 int[ ] ary = {1, 2, 3, 4, 5}; 1.ary[0] の値は 0 です。 2.ary[3] + ary[4] の値は 7です。 3.ary[ary[0]] の値は 2 です。

More Related