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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why cyclomatic complexity is important?

1032


What is a ashx file?

1131


What is directive in asp net?

1025


Explain what is event bubbling?

1021


What is css in asp.net?

1076


Does google crawl redirects?

972


Differentiate between early binding and late binding.

1098


Explain parts of assembly?

971


What is asp.net architecture?

1004


i want the asp.net technical questions and answeres

2069


Explain the difference between the web config and machine config.

1037


Can I tap into other windows livetm services?

990


What is asp.net used for?

1105


What is the significance of ASP.NET routing?

1078


What is meant by server side scripting?

958