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
How do you remove white spaces from a string?
Are string objects mutable or immutable?
What is lock in c#?
What is difference between throw and throws in c#?
What is the usage of OLE?
What is connection pooling in ado.net?
What are scriptable objects?
Can we inherit a private class in c#?
What is a Assembly?
Is it possible to execute multiple catch block for a single try statement?
Give an example to show for hiding base class methods?
What do you mean by “finalize” and “finally” methods in c#?
What is the major difference between a custom control and user control?
What does return do in unity?
What are the 3 types of comments in c#?