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 what is event bubbling?
What is difference between web config and global asax?
What r the asp.net list controls and difference between them?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
Do session use cookies in asp net?
What websites use asp.net?
What is asp net application object?
What are the contents of cookie?
What are the major built-in objects in ASP.NET?
What is voluum?
What does a switch do?
What is the difference between equals() and == in c#?
What is difference between viewstate and session in asp net?