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?



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

Answer / 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

More ASP.NET Interview Questions

What's the use of formatters in .net?

0 Answers  


Explain how dot net compiled code will become platform independent?

0 Answers  


Tell me Asp.net Method Overriding.

3 Answers  


Can we override the enablepartialrendering property of the scriptmanager class?

0 Answers  


Disable browser cache for entire ASP.NET website?

0 Answers   HCL,


What I need to create and run an asp.net application?

0 Answers  


Differentiate between authentication and authorization.

0 Answers  


What does aspnet_regiis -i do ?

1 Answers  


What is asp net_sessionid?

0 Answers  


what is stateless ?

2 Answers   TCS,


can u debug application programatically? if yes how?

0 Answers   FactorH,


How To Generate ConnectionString By Using Notepad??

2 Answers  


Categories