• cbazero@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    I guess you ask for C++. There Type* can be null while Type& can’t be null. When it gets compiled Type& is compiled (mostly) to the same machinecode as Type*.