Interviews4 answers
What is the size of a reference variable?
4 Answers
It depends on OS version in windows.
Vishal JadavPosted Aug 15, 2016, 2:55 AM EDT
The size of the reference itself will depend on your processor architecture - 4 bytes on 32-bit, 8 bytes on 64-bit.
Rajendra TripathyPosted Aug 8, 2014, 5:56 AM EDT
The reference itself is basically a pointer. 32 bits on a 32 bit OS, 64 bits on a 64 bit OS.
Dasharath VishwakarmaPosted May 19, 2014, 8:51 PM EDT
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 PoolaPosted Apr 23, 2012, 12:50 AM EDT


