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


Please Help Members By Posting Answers For Below Questions

What is delegate in c# interview questions?

670


What are the uses of delegates in c#?

768


Is array a list?

642


Can you create partial delegates and enumerations?

772


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

1654






Can a method return multiple values in c#?

601


Suppose two interfaces have same method, so how will you implement these methods in derive class?

665


Does c# support multiple inheritance (mi)?

694


If you want to write your own dot net language, what steps you will u take care?

746


Is int a struct in c#?

658


What is console readkey in vb net?

833


Can an abstract class inherit from another abstract class c#?

704


How much time will it take to learn unity?

653


What is a console in c#?

626


What is action in c# 3.5?

727