int i,string s, String s1 Which is valuetype which is
refrence type.
Answers were Sorted based on User's Feedback
Answer / spvarma
int i as valuetype
string s,string s1 are reference types....
Is This Answer Correct ? | 36 Yes | 4 No |
Answer / geetanjali
int i is value type
strings,s1 are refrence type
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / pradeep nfg
Int i => Value type
String S, S1 => Reference type
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
Answer / 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 |
Is dictionary reference type c#?
why C# called C#
Can I use exceptions in c#?
Is post back in c#?
What is the purpose of a namespace?
What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?
Differentiate between copy and default constructor.
Illustrate namespaces in c#?
Which sorting algorithm is best?
If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?
Explain ACID rule of thumb for transactions.
What is action c#?