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 is session management in web application?

0 Answers  


Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

3 Answers   HCL, Wipro,


What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor

1 Answers   Icertis, Microsoft, Syntax Softtech,


What does the "EnableViewState" property do?

2 Answers  


Where you store Connection string in "Web.Config" file in ASP.NET?

0 Answers   Sans Pareil IT Services,


IN an ASP.NET Web application if there is any error, how can you debug?

0 Answers   Siebel,


How To Generate ConnectionString By Using Notepad??

2 Answers  


Contrast the use of an abstract base class against an interface?

5 Answers   iLink,


Is asp.net free?

0 Answers  


Where the assembly is stored in asp.net?

0 Answers  


What is a WebService and what is the underlying protocol used in it? Namespace?

1 Answers  


What is a server farm in iis?

0 Answers  


Categories