RosettaCodeData/Task/Pointers-and-references/PureBasic/pointers-and-references-6.b...

11 lines
278 B
Plaintext

Structure employee
id.i
name.s
jobs.s[20] ;array of job descriptions
EndStructure
Dim employees.employee(10) ;an array of employee's
;set a string pointer to the 6th job of the 4th employee
*myString.String = @employees(3) + OffsetOf(employee\jobs) + 5 * SizeOf(String)