Contents:
  1. Variables

Variables

CSQ is dynamically typed so you don’t need to specify the type of a variable. It will be determined automatically.

a := 10
print a

The output of the program will be:

10

CSQ also supports variable reassignment.

a := 10
a = 20
print a

The output of the program will be:

20

CSQ supports list (contiguous memory allocation) As CSQ is dynamically typed so the elements can be of any type.

a := {1,'Hi'}
print a[0]
print a[1]

Output

1
Hi
Posts (Latest 10 updated) : Read all