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

What is anonymous class in c#?

711


What is dynamic in c#?

670


What is the difference between the debug class and trace class? Documentation looks the same.

763


Define satellite Assembly?

763


Is c# the same as d flat?

714


What is writeline?

676


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

750


How to add a readonly property in c#.net

727


Can we store different data types in arraylist in c#?

698


How do you access a constant field declared in a class?

696


What is a class level variable in c#?

742


Is c# easier than javascript?

713


What is the difference between select and selectmany?

645


What is exe in c#?

693


How do I develop c# apps?

724