4
Reply

What is the size of a reference variable?

Murali Poola

Murali Poola

Apr 23, 2012
7.3k
0

    It depends on OS version in windows.

    Vishal Jadav
    August 15, 2016
    0

    The size of the reference itself will depend on your processor architecture - 4 bytes on 32-bit, 8 bytes on 64-bit.

    Rajendra Tripathy
    August 08, 2014
    0

    The reference itself is basically a pointer. 32 bits on a 32 bit OS, 64 bits on a 64 bit OS.

    All references are the same size (they are 4 bytes on a 32-bit CLR and 8 bytes on a 64-bit CLR, but within any one CLR all references are the same size)

    Murali Poola
    April 23, 2012
    0