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...

there is two functions function a and function b like
fun a(){....
.....
}

fun b()
{

}
in function b i write the coding to add two numbers and i
need to dispaly the sum result in function a with out using
global variable. how we do?

Answer Posted / imatoria

1. Either change the signature of function a() to function
a(int total).
2. Or Make the function a() as the extension function:
static function a(this int total).

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WSDL means?

1195


What is difference between session and cookies in asp net?

1110


What are the different authentication modes in asp.net?

1064


Which authentication uses a combination of windows and iis authentication?

1138


What is a user session?

928


Explain the difference between singleton and single call?

1036


How to rename a table using sql queries?

1161


Please briefly explain the usage of global.asax?

1011


Explain the difference between Web Garden and Web Farm?

1054


can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it

1991


What do you mean by authorization?

999


Who creates jsessionid?

1080


Explain what is postback in asp. Net?

1121


What is web router?

983


Which is faster viewdata or viewbag?

1049