Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
20
Task/Variable-size-Get/FreeBASIC/variable-size-get.freebasic
Normal file
20
Task/Variable-size-Get/FreeBASIC/variable-size-get.freebasic
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
Dim i As Integer
|
||||
Dim l As Long
|
||||
Dim s As Short
|
||||
Dim b As Byte
|
||||
Print "An integer occupies "; SizeOf(i); " bytes"
|
||||
Print "A long occupies "; SizeOf(l); " bytes"
|
||||
Print "A short occupies "; SizeOf(s); " bytes"
|
||||
Print "A byte occupies "; SizeOf(b); " byte"
|
||||
|
||||
' or use type directly rather than a variable
|
||||
|
||||
Print "A boolean occupies "; SizeOf(Boolean); " byte"
|
||||
Print "A single occupies "; SizeOf(Single); " bytes"
|
||||
Print "A double occupies "; SizeOf(Double); " bytes"
|
||||
|
||||
Print
|
||||
Print "Press any key to quit"
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue