Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is reference parameter?
what is out parameters?
what is difference these two?

Answer Posted / vijaysaxena

out -doesnot keep initial value or assigned value.
ref-does
void f1(out int t){
t+=100 //give error becs t has no value --true for ref
t=100 //possible
}

Is This Answer Correct ?    6 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a partial method?

964


What are the types of access modifiers?

914


What is generic collection in c#?

941


Why do I get a security exception when I try to run my c# app?

1003


What is concatenation and when should it be used?

1017


What is default value of enum c#?

897


Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?

979


What happens if the inherited interfaces have conflicting method names?

991


What is the difference between static and constant variables?

1074


Is an array an object c#?

936


What is Event - Delegate?

1078


Is versioning applicable to private assemblies?

984


what is c# command?

990


What is a datacontract?

941


Why generics are used in c#?

962