tags : Programming Languages, Operating Systems, Systems

Variables

  • The last line in the following example is a reference variable
    • C does not have it
    • Golang does not have it
        int a = b // setting a's VALUE to b's VALUE
        int* a = &b // setting a's VALUE to the ADDRESS of b, a is a pointer here
        int& a = b // setting a's ADDRESS to b's ADDRESS (a is a reference to b)