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

Explain one critical mapping?

557


What is an assembly? Explain its parts.

623


Can you use Web API with ASP.NET Web Form?

683


Explain the use of dataadapter.

569


What is the difference between ASP.NET Webforms and ASP.NET MVC?

603






What is difference in .net 1.1 and .net 2.0?

577


What is a response cookie?

603


Explain diff between dataset and datareader?

522


Is asp.net easy to learn?

551


What is hidden field in asp.net?

588


What are validator? How do you disable them?

596


What is a pixel url?

506


What is latest version of asp.net mvc? : Asp.Net MVC

466


What is the flow of processing of the request? : asp.net mvc

503


How do we assign page-specific attributes?

609