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 are the types of authentication in asp.net?

0 Answers  


What is Cookies Less Session?

0 Answers  


How use Xml data in ASP.net?

0 Answers   MCN Solutions,


How many types of validation controls are provided by ASP.NET?

8 Answers  


What can you do with asp.net?

0 Answers  


difference between gridview,data list and repeater control

7 Answers   ABC, Olive Tech,


How to change the form layout in ASp.net 2.0 ?

1 Answers   Netsweeper,


Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process?

1 Answers   Patni, Perot Systems, Sedna Technology,


What is the lifespan for items stored in ViewState?

2 Answers   ISST,


What is HTTPContext and HTTPModule. What is the use of them?

1 Answers  


Is overloading possible in web services?

3 Answers   Microsoft,


under which namespaces connection strings can be defined?

4 Answers  


Categories