Skip to content

Multidimensional Array declaration #351

@HuskyNator

Description

@HuskyNator

The tour skims over a pitfall I had issues with yesterday, namely that arrays are declared quite differently from the way they often are in other programming languages, even though multidimensional arrays are briefly mentioned.
If I understand correctly for example, the last element of an array defined as; int[2][4] foo is accessed using foo[3][1], as opposed to foo[1][3].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions