Open main menu

CDOT Wiki β

Changes

GPU621/The Chapel Programming Language

14 bytes added, 13:47, 20 November 2020
Variable:
==== Variable: ====
We declare variables using '''var''' keyword. Declarations Variable declarations require a type or initializer.
We declare variables using '''var''' keyword.  We can use '''const''' and '''param''' to declare runtime constants and compile-time constants. We can set a '''const''' variable's value at runtime. But '''param''' variable requires to set it at beginning.
var myVar1: real;
25
edits