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

Do ASP.NET forms authentication cookies provide any protection against replay attacks? Do they, for example, include the client's IP address or anything else that would distinguish the real client from an attacker?

1 Answers  


what is a virtual class?

1 Answers   Patni,


Name the application folders present in asp.net 2.0?

1 Answers  


Describe in brief .net framework and its components.

0 Answers  


What is ispostback method in asp.net?

0 Answers  


In C#.net application is run on linux michine

4 Answers  


Why is this service branded with windows livetm?

0 Answers  


what is silverlight and what is the purpose of silverlight?

2 Answers   Cognizant, CTS,


How long should a session id be?

0 Answers  


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?

1 Answers  


What are the advantages of using session?

0 Answers  


State Management (viewstate, session etc)

2 Answers   Syntel,


Categories