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 are extender provider components? Explain how to use an extender provider in the project.

909


What is the namespace for the thread class?

957


What language is c# similar to?

927


What is the difference between convert and parse in c#?

939


how background thread access to ui control?

1056


Can a struct be null?

920


Which constructor is called first in c#?

949


How C# 4.0 supports dynamic programming language?

1022


What is value c#?

834


What are strong name assemblies?

972


Explain the use of SN.exe

1103


What are anonymous types in c#?

910


What is the difference between dynamic type variables and object type variables in c#?

886


What is the difference between do and while loop?

887


Why do we need generics in c#?

932