int i,string s, String s1 Which is valuetype which is
refrence type.
Answers were Sorted based on User's Feedback
Answer / spvarma
int i as valuetype
string s,string s1 are reference types....
Is This Answer Correct ? | 36 Yes | 4 No |
Answer / geetanjali
int i is value type
strings,s1 are refrence type
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / pradeep nfg
Int i => Value type
String S, S1 => Reference type
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ashish p
Int i => Value type ==>Stack allocation in memory
String S, S1 => Reference type==>heap allocation in memory
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / mahesh
int i :- Value type it allocate on stach memory
string s, String s1 :- refference type it allocate on heap
memory
Is This Answer Correct ? | 0 Yes | 2 No |
What is asynccallback c#?
What is the difference between delegates and events in c#?
Should I make my destructor virtual?
What is the difference between ienumerable and icollection?
Where are value types stored in c#?
Why hashtable is thread safe in c#?
What is marshalling and what are different kinds of marshalling?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
Explain About a class access specifiers and method access specifiers.
Why do we use inheritance in c#?
How much time will it take to learn unity?
Are arrays value types or reference types?