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
What is dynamic in c#?
Explain the difference between directcast and ctype.
What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
What are the advantages of properties in c#?
What is the size of a decimal?
How many classes are there in classification?
Why linq is having select clause at the end?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
What do u mean by delegation of authority?
Contrast between an interface and abstract class?
Why main is static in c#?
Why do we use delegates?
What does string intern do?
Why can't we use a static class instead of singleton?
Can datetime be null c#?