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
Does constructor return any value in c#?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
Write a C# program to find the Factorial of n
Do extension methods have to be static?
What is the use of console?
Explain how to parse a datetime string?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
Can you use foreach iteration on arrays in c#?
How long does it take to learn c# programming?
What is the data encapsulation?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
Define encapsulation?
What are c# i/o classes? What are the commonly used i/o classes?
What is different about switch statements in c#?
Is dictionary a collection?