C
C# Learner
In the following...
byte[] ReturnByteArray(int size)
{
byte[] result = new byte[size];
for (int i = 0; i < size; ++i) {
result = (byte)0;
}
return result;
}
....what is being returned - a reference or a value?
TIA
byte[] ReturnByteArray(int size)
{
byte[] result = new byte[size];
for (int i = 0; i < size; ++i) {
result = (byte)0;
}
return result;
}
....what is being returned - a reference or a value?
TIA