int i,string s, String s1 Which is valuetype which is
refrence type.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is learning c# hard?

703


Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

685


What are the 3 types of comments in c#?

721


What does executescalar return in c#?

641


What is an icollection in c#?

674


Why singleton is sealed?

653


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

714


What are the desktop applications?

651


How can you achieve run time polymorphism in C#?

755


What is iqueryable in linq?

649


Explain About multi level and multiple inheritance how to achieve in .net

789


Describe two uses of the “using” statement during the operation of c#?

733


What is an extension method in c#?

716


What is difference between managed and unmanaged code?

700


Why dictionary is used in c#?

707