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 / 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 |
How Web Services help Us? What r the difference between Remoting and webservices
5 Answers Protech, TCS, Tech Mahindra,
What is the difference between Session and response.Redirect?
What is globalization and localization in asp net?
What is a Windows Service and how does its lifecycle differ from a "standard" EXE?
What is the state management in asp.net?
Explain diff. Between friend and protected friend?
Types of object in asp ?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is boxing and unboxing ?
7 Answers Accenture, Infosys, MedTek,
Is a dll file an executable?
What do you mean by View State and what is its role?
How does Garbage collector(GC) works in .net
14 Answers Accenture, HCL, Kekran Mekran, People Tech, Wipro,