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 the syntax for calling an overloaded constructor within a constructor?

964


What is an extension method in c#?

988


Is array a list?

882


What are predicates in c#?

945


What is yield keyword?

876


What is the benefit of interface in c#?

957


What is the main purpose of linq?

899


What is singleordefault?

903


How do I link two windows forms in c#?

935


what is a enumeration in c#

1049


Can a class be private in c#?

976


Explain synchronous and asynchronous operations?

999


Can an int be negative c#?

1050


what is the difference between a struct and a class in c#?

1159


What does an indexer do?

894