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 a static in c#?
What is the difference between interface and functional interface?
Is stringbuilder better than string?
What is difference between dictionary and hashtable in c#?
What is action c#?
What is null propagation c#?
What is a view? What is the use of it?
What is the difference between constants and read-only?
What are the 3 elements of delegation?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?
What are synchronous and asynchronous operations?
What are most desktop applications written in?
What does this keyword mean in c#?
Is visual c# free?
Describe the difference between inline and code behind - which is best?