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
What is cookies in asp net?
How do you handle server controls?
What are strong names?
How can you handle errors in Web API?
What is the difference between typeof() vs gettype()?
Explain method to handle error using HttpError in Web API?
Explain the difference between asp.net mvc and asp.net webforms
What are the different types of validation controls provided in ASP.NET?
What is the mvc framework?
What are the major built-in objects in ASP.NET?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
What do you mean by authorization?
What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?
Who creates jsessionid?
Why is xap important?