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 kind of programming language is ASP.NET?

0 Answers   3i Infotech,


Explain about the .NET framework?

0 Answers  


What is the advantage of mvc over asp.net? : Asp.Net MVC

0 Answers  


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

0 Answers   Siebel,


In Crystal Report Refresh Button is not working. when I click on it it givesh error like "missing parameter values " I have used propery of Crystal Viewer like ReuseParameterValuesOnRefresh="True" but this also not working. Plz give me any solution.

1 Answers  


Can you create an app domain ?

1 Answers  


How do you trap errors in ASP and how do you invoke a component in ASP ?

1 Answers   Cognizant,


By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

0 Answers  


Types of object in asp ?

1 Answers   Accenture,


Which class provides methods that can be used to manage role membership to be used in user authorization?

3 Answers   Wipro,


What is localhost in asp.net?

0 Answers  


Explain the life cycle of an ASP .NET page

2 Answers   HCL, Surya Software,


Categories