Anonymous
Not logged in
Talk
Contributions
Create account
Log in
WikiKnowledgeBase
Search
Editing
Technology/Software Development/General knowledge/Programming Fundamentals/Functions
(section)
From WikiKnowledgeBase
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Parameters and Arguments == '''Definition''' Parameters are placeholders in a function declaration, while arguments are the actual values passed to the function when it is called. '''Code Example''' Here's an example in C# that demonstrates functions with parameters and arguments: <pre> // Function declaration with parameters int add(int a, int b) { return a + b; } // Function execution with arguments int result = add(3, 4); Console.WriteLine(result); // Output: 7 </pre> In this example, the `add` function takes two parameters `a` and `b`, and returns their sum. When the function is executed with the arguments `3` and `4`, it returns `7`, which is then printed to the console.
Summary:
Please note that all contributions to WikiKnowledgeBase may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
My wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Random page
Categories
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs