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 are validators and list some validators of asp.net?

0 Answers  


What are sharepoint pages?

0 Answers  


What are the new page events added in Asp.net 2.0 ?

5 Answers   Sapient, TCS,


any body help me. Is it possible to convert text in gif images into word document with the same text? thanks in advance.

2 Answers  


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

0 Answers   HCL,






Given an ASP.NET Web Form called WebFrom1, what class does the WebForm1 class inherit from by default? a) System.Web.Form b) System.Web.GUI.Page c) System.Web.UI.Page d) System.Web.UI.Form

3 Answers   Syntax Softtech,


Which method do you use to enforce garbage collection in .net?

0 Answers  


How do we implement bundling in MVC?

0 Answers   B-Ways TecnoSoft,


What is the maximum length of textbox

1 Answers  


What is localization and Globalization?

3 Answers  


Which is the parent class of the ASP.NET server control?

0 Answers   Sans Pareil IT Services,


List of interview questions collections at www.dpoint.weebly.com

2 Answers   IBM,


Categories