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 form level validation and field level validation?
What is the use of response redirect in asp.net?
What is data caching?
Explain automatic memory management in .net.
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
Explain diff. Betn dataset and recordset?
Will session work if cookies is disabled?
When does a session actually start?
What is postback and autopostback in asp.net?
What is the difference between “Web.config” and “Machine.Config”?
Explain the different types of assemblies?
List down the sequence of methods called during the page load.
Is it possible to apply themes to an asp.net application? If yes, then how?
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
How do u declare static variable and how it is declared and what is its lifetime?