SUNIL GUTTA

SUNIL GUTTA

  • NA
  • 1k
  • 395.5k

data type of array ?

Mar 14 2013 4:36 AM
Hie friends

Well array in general its a grouping of similar datatypes [int or char or string] :) as all know it

But my doubt is,  FIXED length types are VALUES types if i am not wrong ?? so we can store them in stack :)

While memory allocated at run-time like strings ,objects etc are variable length humm .!! so they are reference types [storage:managed heap]:) right ?

SO problem is ARRAY is a fixed length type even tough it called as Reference types why cant we call it as value type :( ? 

I guess as array's group's strings also that's why its called as reference type as string is a reference type 

Hope everyone got my problem & waiting for your solution in general in ur own view :) no links plz for this 

TY


Answers (7)