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 the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ?

3 Answers   eXensys,


What is the difference between typeof() vs gettype()?

0 Answers  


what are grid events ?code for dropdown inside grid and binding dropdown syntax

3 Answers   Quantum,


Explain difference between dataset and recordset?

0 Answers  


What is the use of session in web application?

0 Answers  


What is data grid view in asp.net?

0 Answers  


How Session use Cookies in State Management?

0 Answers  


version information of assembly consist of _________ values.

3 Answers   AG Technologies,


What is the difference between and ActiveX dll and control?

2 Answers   Microsoft,


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

0 Answers  


Is it possible to change the index of primary key on table?

0 Answers  


What is the use of directives & explain with example?

2 Answers   C Squared Systems,


Categories