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
Explain one critical mapping?
What is an assembly? Explain its parts.
Can you use Web API with ASP.NET Web Form?
Explain the use of dataadapter.
What is the difference between ASP.NET Webforms and ASP.NET MVC?
What is difference in .net 1.1 and .net 2.0?
What is a response cookie?
Explain diff between dataset and datareader?
Is asp.net easy to learn?
What is hidden field in asp.net?
What are validator? How do you disable them?
What is a pixel url?
What is latest version of asp.net mvc? : Asp.Net MVC
What is the flow of processing of the request? : asp.net mvc
How do we assign page-specific attributes?