0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Swift初心者のためのゼロから覚える基礎知識

Last updated at Posted at 2019-09-16

この記事は随時更新予定です。

varとletの違い

定数はlet、変数はvarになります。
定数は値を変更することができませんが、変数は値を変更できるという違いがあります。

キャスト(型変換)が必要な理由とは

異なるデータ型の値が連結したり、計算する場合はエラーが発生します。
例えばInt型とString型をキャストせずに連結しようとするとエラーになります。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?