answersLogoWhite

0

whatever the variables we declare in function signature to receive the arguments at the calling that are known as parameters..

e.g.

int sum(int a,int b);

here a & b are known as parameters.....

User Avatar

Mortimer Welch

Lvl 10
2y ago

What else can I help you with?

Continue Learning about Basic Math

How do you define function in php?

A function is defined in php by placing the keyword function before the chosen function name.The function name must not match a pre-defined function and has certain limitation as to the characters that can be part of it. Notably, the function name must not contain any spaces. Following the function name are a parenthesis-enclosed, comma-separated list of variables, these variables are called calling parameters and are helpful if the function must process some values or follows diferent branches depending on external variables. Finally the function body is enclosed in curly brackets { }.


What is the Physical significance of general gas constant?

if r is not determine, then other parameters are no find out easily


What is a function statement?

A function statement is a block where the function is declared and defined.


What is the difference between function and recursive function?

I will explain in the easiest way the difference between the function and recursive function in C language. Simple Answer is argument of the function is differ but in the recursive function it is same:) Explanation: Function int function(int,int)// function declaration main() { int n; ...... ...... n=function(a,b); } int function(int c,int d) { ...... ...... ...... } recursive Function: int recursive(int,int)// recursive Function declaration main() { int n; ..... ..... ..... ..... n=recursive(a,b); } int recursive(int a,int b) { ..... .... .... .... } Carefully see, In the recursive Function the function arguments are same.


How do you write a function with a variable number of input elements in PHP?

When defining your function, do not put any arguments in the definition (e.g. function myFuntion()). Inside the function, you can use func_num_args() and func_get_arg($number) to get the function's arguments.

Related Questions

What is the smallest number of formal parameters that can be included in a function definition in C?

You can have a function with no parameters.


What is true about the parameters of a function (Python 3)?

a. Functions can have only one parameter. b. The order in which the parameters are defined matters. c. Parameters can be passed to a function in any order. d. Parameters have no order.


How many parameters are possible using the IF function in Excel?

The IF function has 3 parameters. The condition, the true part and the false part.


What does the function counter do and what are its parameters?

There is no builtin function 'counta' in C.


What is the input of a function called?

Parameters


Is sendng inputs to a function optional?

You don't 'send input' to a function, you pass parameters. There are functions without parameters, 'getpid' for example.


How do you call a function named my function?

In most languages, you can't have names with space, for functions, variables, etc. Assuming your function is called myFunction, the usual way to call it is: myFunction() This assumes the function requires no parameters. If the function does require parameters, the parameters will be included within parentheses.


define function overloading?

Defining several functions with the same name with unique list of parameters is called as function overloading.


Relationship between actual and formal arguments?

The formal arguments are the names given to the parameters/arguments in the function declaration. These names will be used within the body of the function. void myFunc( int i, char c ); // Function prototype The actual arguments are the variables and/or constants (those supplied by the caller) that are used when invoking the function. int intVar = 6; char charVar = 'e'; // Actual parameters 3 and 'G' will be mapped to the // formal parameters 'i' and 'c' myFunc( 3, 'G' ); // Execute function // Actual parameters 'intVar' and 'charVar' will be mapped // to the formal parameters 'i' and 'c' myFunc( intVar, charVar ); // Execute function


What is the significance of using void in functions parameters lists?

It means that the function doesn't have parameters.example:int foo (void); -- it is a prototype for function 'foo', having no parametersint bar (); -- it is not a prototype as it says nothing about the parameters


When calling a function that has multiple parameters can you list the arguments in any order?

No. C function argument are positional.


What is an adaptation's function?

An adaptive-control function is the part of a control system which dynamically updates the parameters of an optimizing control function or a direct control function.