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

How C# 4.0 supports dynamic programming language?

1066


Is c# strongly typed?

889


What do you understand by the terms datareader object and dataset object?

1027


What is difference between mutable and immutable in c#?

954


Can you inherit from multiple classes in c#?

937


What is difference between method and function in c#?

962


Where’s global assembly cache located on the system?

1060


Can abstract class have constructor?

921


How many types of serialization are there in c#?

934


What is c# best for?

993


Describe the ways of cleaning up objects in c#.

944


What is delegation in oops?

1042


What is the use of tryparse in c#?

966


While debugging a C# application can you change the value of a variable?

1086


Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

984