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


Please Help Members By Posting Answers For Below Questions

What is a static in c#?

644


What is the difference between interface and functional interface?

666


Is stringbuilder better than string?

691


What is difference between dictionary and hashtable in c#?

607


What is action c#?

658






What is null propagation c#?

670


What is a view? What is the use of it?

757


What is the difference between constants and read-only?

661


What are the 3 elements of delegation?

676


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

678


What are synchronous and asynchronous operations?

654


What are most desktop applications written in?

652


What does this keyword mean in c#?

685


Is visual c# free?

671


Describe the difference between inline and code behind - which is best?

720