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
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
What do you mean by query string?
How do you declare static variable? What is its lifetime?
How many types of triggers are there in update panel?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
What are server side controls?
Define a web service in .net?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
What is the full form of asp.net?
What is the server of asp.net?
What is the procedure to create the environment for asp.net? : asp.net mvc
Which method do you use to enforce garbage collection in .net?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What are the steps to follow to host a web application on a web server?
How do you declare static variable?