Changes

Jump to: navigation, search

GPU621/Chapel

360 bytes added, 21:55, 29 November 2022
Variables
var myVariable1: int;
writeln("myVariable1 = ", myVariable1);
 
const and param can be used to declare runtime constants and compile-time constants respectively. A const must be initialized in place, but can have its value generated at runtime. A param must be known at compile time.
 
const myConst: real = sqrt(myVariable2);
param myParam = 3.14;
writeln("myConst = ", myConst, ", myParam = ", myParam);
= Reference =
73
edits

Navigation menu