Skip to content

At Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

At Operator

The at operator is used for obtaining an offset address of a memory location.

It is equivalent to:

&array_like[index]

Syntax

array_like at index

Usage Example

import basics

func main(argc int, argv **ubyte) {
    end **ubyte = argv at argc
    
    for(p **ubyte = argv; p != end; p = p at 1){
        printf("=> %s\n", *p)
    }
}
Clone this wiki locally