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
Whats the difference between abstract factory pattern and factory pattern?
What does a switch do?
What is the difference between abstract class vs interface? Can give me the real time examples?
What is the sequence in which ASP.NET events are processed?
Which object encapsulates state or data of a user?
How to send a DataReader as a parameter to a remote client ?
Which is better viewstate or session?
Can master pages be nested?
What are directives in asp.net?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
Explain the difference between webfarm and webgardens in .net?
witch is the best insistute in sharpoint course.what abt future of share point course.
What is the asp.net control toolkit?
How long does an http session last?