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 does args mean in c#?

950


What is the difference between selection and projection?

920


If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

1027


What is definition in c#?

931


what is IEquatable

1051


What is difference between comparable and comparator?

953


What is class method c#?

954


What is the base class in .net from which all the classes are derived from?

1012


For read-only operation which property you have to designated?

1065


Is system a class in c#?

977


Give examples for reference types?

1045


What is concrete class in c#?

952


Explain what are three test cases you should go through in unit testing?

997


Differentiate between response.expires and response.expiresabsolute?

1021


What is the difference between ienumerable and enumerator?

963