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

To call a Web service SOAP which transport protocol you use?

3 Answers   Siebel,


Difference between Dataset and DataReader ?

4 Answers   Accenture, BirlaSoft, Infosys, Microsoft, Techseol,


What are the benefits of Razor View?

0 Answers   NA,


What are the different types of Session state management options available with ASP.NET?

5 Answers   Siebel Systems,


How can you provide an alternating color scheme in a Repeater control?

6 Answers   Siebel Systems,






what is diffrence between debug class and trace class in asp.net ?

2 Answers  


What is paging in context of Memory?

0 Answers   Microsoft,


Why is xap important?

0 Answers  


What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

1 Answers  


How do you do validations. Whether client-side or server-side validations are better.?

5 Answers   Microsoft,


Types of caching ?

1 Answers   Digital GlobalSoft, MicroSec, Wipro,


What is a global postback url?

0 Answers  


Categories