int i,string s, String s1 Which is valuetype which is
refrence type.
Answer Posted / 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 |
Post New Answer View All Answers
What is the default value of date?
Why do we use inheritance in c#?
What is c# most used for?
How is a loop recorder monitored?
What is Named parameter in C#?
Which language is used for desktop application?
How string definitions will prevent escaping on backslashes in C#?
Differentiate between copy and default constructor.
What is void in c#?
Is for loop faster than foreach?
Explain About friend and Protected friend
What is stringwriter c#?
What are accessors?
How we convert private assembly into public assembly?
What are the advantages of generics in c#?