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
What does the keyword “virtual†declare for a method or property?
Explain anonymous type in c#?
What is the lock statement in c#?
To create a localized application which namespaces are necessary?
What are the benefits of using generics?
How can you achieve run time polymorphism in C#?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
What is uint64_t?
What is the difference between writeline and write in c#?
What is called method in c#?
Why do we need interfaces in c#?
What is anonymous class in c#?
What are data types with examples?
Is double a decimal?
what is scope of a protected internal member variable of a c# class