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 used ref keyword in c#,and how we used it?

Answer Posted / satya

if you want pass parameters by reference then ref keyword
should be used in calling and called methods
void add(ref int x)--- called(formal parameter)
add(ref a)-----calling(actual parameter)
.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is default value of bool in c#?

939


How can you read 3rd line from a text file?

976


What's the difference between a static method and a non static method c#?

983


When a switch is said to be congested?

978


How do you specify a custom attribute for the entire assembly (rather than for a class)?

938


How you will create satellite assemblies?

946


What is int32 maxvalue?

937


Describe an interface class?

1057


Can you inherit multiple abstract classes in c#?

914


What is the difference between string and string in c#?

966


What is the purpose of abstract class in c#?

910


Explain the types of assemblies in .net?

937


What are logical operators in c#?

932


What is escape sequence in c#?

990


How can I get around scope problems in a try/catch?

902