What are the function parameters?

1 Answer

Answer :

PARAMETERS : parameters provides the data communication between the calling function and called
function.
 They are two types of parametes
 1 : Actual parameters.
 2 : Formal parameters.
1 : Actual Parameters : These are the parameters transferred from the calling function (main program) to
the called function (function).
2 : Formal Parameters :These are the parameters transferred into the calling function (main program) from
the called function(function).
Ex : main()
 {
fun1( a , b ); //Calling function
 }
 fun1( x, y ) //called function
 {
 . . . . . .
 }
Where
 a, b are the Actual Parameters
 x, y are the Formal Parameters

Related questions

Description : what is function? Write types of function with example?

Last Answer : Function: Function means, a large program can be divided into a series of individual related programs called modules. These modules are called functions. A function is a program segment that carries out ... efficiency of program. 4 : Function sharing : A function can be shared by many programmers.

Description : What is the macro function?

Last Answer : Macro Substitution : They are two types of macro substitution. 1 : Macro substitution without arguments. 2 : Macro substitution with arguments. 1 : Macro substitution without arguments : It is a process to ... varn like the formal parameters in a function definition. Ex : #define PROD(x) (x*x)

Description : What is return statement in function?

Last Answer : Return Statement : The return statement may or may not send back any values to the calling function(main program). Syntax : return; // does not return any value or return(exp); // the ... function can return some values other than int type, then we must specify the data type to be return.

Description : What are the function variables? (OR) What are the local and global variables?

Last Answer : FUNCTION VARIABLES : They are two types of variables. 1 : Local Variable. 2 : Global Variable. 1 : Local Variable : The local variables are defined within the body of the function or block. These ... variables m' and n' are defined outside the main() function. Hence they are global variables.

Description : What is function definition? (OR) what is user defined function? (OR) Write syntax of user defined function?

Last Answer : Function Definition : The program module that is written to achieve a specific task is called function definition. Syntax : type function-name(parameter list) // function header. { declaration of variables; body of function; // ... and b ); scanf( %d%d ,&a,&b); c=a+b; printf( %d ,c); }

Description : What is calling function? (OR) what is function call?

Last Answer : Function Call : The function can be called by simply using the function name. Syntax : function-name(); function-name(parameters); return value = function-name(parameters); Ex : add(); // function ... ,b); // function with arguments. c=fun(a,b); // function with arguments and return values

Description : How to Decleration of function?

Last Answer : Function Declaration (Function Prototype) : Like variable, all functions in a C program must be declared, before they are invoked. The declaration of each function should end with semicolon. Ths is ... : Parameter list declares the variables that will receive the data sent by the calling program.

Description : What is a function? Write advantages of function?

Last Answer : Function: Function means, a large program can be divided into a series of individual related programs called modules. These modules are called functions. A function is a program segment that carries ... efficiency of program. 4 : Function sharing : A function can be shared by many programmers

Description : Write a C program addition of two matrices?

Last Answer : #include #include void main() { int a[25][25],b[25][25],c[25][25],i,j,m,n; clrscr(); printf("enter the rows and colums of two matrics:\n"); scanf("%d%d",&m,&n); printf("\nenter the elements of A matrics"); for(i=0;i

Description : Write a C program multiplication of two matrices?

Last Answer : // Write a C program Multiplication of Two Matrices. #include #include void main() { int a[25][25],b[25][25],c[25][25],i,j,m,n,k,r,s; clrscr(); printf("enter the rows and colums of A matrics:\n"); ... B matrics:\n"); scanf("%d%d",&r,&s); printf("\nenter the elements of A matrics"); for(i=0;i

Description : What is call by value and call by reference?

Last Answer : PASSING PARAMETERS TO FUNCTIONS : The called function receives the information from the calling function through the parameters. The variables used while invoking the calling function are called actual parameters and the variables used in the ... *b) { int temp; temp=*a; *a=*b; *b=temp; }

Description : Explain category of functions with examples?

Last Answer : CATEGORY OF FUNCTIONS : A function, depending on whether arguments are present or not and whether a value is returned or not. The following are the function prototypes. 1 : Functions with no Parameters and no Return Values. 2 : ... (); } int sum(int a,int b) { int c; c=a+b; return c; }

Description : How to initialization of array with example?

Last Answer : Initilization of Array : assigning the required information to a variable before processing is called initialization.we can initialize the individual elements of an array. Array elements can be initialized at the time of declaration. Syntax : ... M','P','U','T','E','R'}; char b[] = COMPUTER ;

Description : What is an Array? Write advantages of arrays?

Last Answer : An array is a collection of similar data items. All the data items of an array are stored in continuous memory locations in RAM. The elements of an array are of same data type and each item can be accessed using the same name.

Description : What is call by reference? (OR) what is pass by reference?

Last Answer : Pass by reference (OR) Call by Reference : In pass by reference, a function is called with addresses of actual parameters. In the function header, the formal parameters receive the addresses of actual parameters. Now the formal parameters do ... a,int *b) { int temp; temp=*a; *a=*b; *b=temp; }

Description : What is call by value? (OR) what is pass by value?

Last Answer : Pass by value (OR) Call by value : When a function is called with actual parameters, the values of actual parameters are copied into formal parameters. If the values of the formal parametes changes in the function, the values of ... void swap(int a,int b) { int temp; temp=a; a=b; b=temp; }

Description : Write categeory of functions ?

Last Answer : CATEGORY OF FUNCTIONS : A function, depending on whether arguments are present or not and whether a value is returned or not. The following are the function prototypes. 1 : Functions with no ... : Functions with Parameters and no Return Values. 4 : Functions with Parameters and Return Values.

Description : Write types of functions?

Last Answer : The functions can be classified into two categories. 1 : Built in Functions (OR) Library Functions 2 : User-defined Functions. 1 : Built-in Functions (OR) Library Functions : The standard C ... increase efficiency of program. 4 : Function sharing : A function can be shared by many programmers.

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

Last Answer : 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.

Description : The function of project initiation is to describe all the parameters of a project and  establish the suitable project management and excellence environment necessary to  complete the project. (True/False)

Last Answer : Ans. True

Description : The co-efficient of discharge of an orificemeter is a function of (A) Reynolds number at the orifice (B) Ratio of orifice dia to pipe dia (C) Both (A) and (B) (D) None of the above parameters, and has a constant value of 0.61

Last Answer : (C) Both (A) and (B)

Description : 37. Which of the following is not a characteristics of the LP a. Resources must be limited b. Only one objective function c. Parameters value remains constant during the planning period d. The problem must be of minimization type

Last Answer : d. The problem must be of minimization type

Description : When an array is passed as parameter to a function, which of the following statements is correct ? (A) The function can change values in the original array. (B) In C, parameters are passed by value, ... . (D) Results in a run time error when the function tries to access the elements in the array.

Last Answer : (A) The function can change values in the original array.

Description : Were the blood glucose parameters changed in the last few years?

Last Answer : Here’s a Medical News Today article people with diabetes have a different target range of 80–130 mg/dL.

Description : When you had people in to babysit your kids, did you try to micromanage how they behaved with your kids, or did you tell them just do whatever works for you (with some parameters, like no hitting)?

Last Answer : I usually just tell them where the dog food and the whips are.

Description : Are there any angle parameters Under the Orthogonal Condition??

Last Answer : 90 degrees kiddo

Description : What are the parameters surrounding a patient request for their medical records? (please see details)

Last Answer : answer:Asking for medical records is a minefield. I asked for copies of mine and was charged nore than $40 for copies of the x-rays, etc. Your ability to see your own medical records is probably the ... a policy of charging all patients a flat fee. There is a lot of good information on HIPAA here.

Description : Parameters or Registry keys? Which is best to tell an application to do "something" at startup?

Last Answer : The registry is probably the better choice. That's where configuration -type stuff is supposed to go, for one thing, so people are more likely to look for it there. For another, users will sometimes ... to build in some command-line parameters too, in case power users would want to utilize them..)

Description : How do I change my pressure parameters, on my tire sensors from 60 to 40 psi?

Last Answer : By referring to the your vehicle’s owner’s manual, perhaps. Or, if you have OnStar, they can probably walk you through it.

Description : When you're at work, can you wear absolutely anything you want, or whatever you want within certain parameters (i.e. no jeans, no tank tops), or do you have to wear a uniform?

Last Answer : well i am currently unemployed, but at my last job i worked at a fireworks stand which was wonderful because we got to wear whatever, except that it was a bit hot sometimes but that was honestly the only downside

Description : Mention any two parameters where Sri Lanka has scored over India in HDI. -SST 10th

Last Answer : (i) Per capital income (ii) Literacy rate

Description : When you define a field for a table, which of the following parameters do Access always consider optional? -Technology

Last Answer : (d) Description field of the table is optional, as it depends on the databasedesigner that he/she wants to describe a field or not.

Description : XGboost: how to find hyperparameters (parameters) of a trained model -Web-Development

Last Answer : answer:

Description : What parameters to consider for an air conditioner installation?

Last Answer : We have listed a few reasons how regular servicing and maintaining your air conditioner can safeguard the air quality of your home giving you the necessary peace of mind.Save on electricity ... Within this time, you can avail practically free services which include any minor repairs that need

Description : What are the hybrid parameters ? What is a hybrid parameter ?

Last Answer : A set of mixed unit parameters is called a hybrid parameter to establish an equivalent network of two ports in a system.

Description : What are the parameters ?

Last Answer : The constant quantity included in the functional equation of the circuit which is similar to the special properties of the circuit such as resistance , capacitance , inductance etc.

Last Answer : Electric On the circuit Used Material These Those Everyone A Specific Work Done By Them Circuit Parameters Says.

Description : What parameters must a photo have in order to be used to make a photo wallpaper for a wall?

Last Answer : Print resolution is measured in DPI, ie. dots per cm² To put it simply, we have the following image, for example, in a resolution of 650x400 (really small, only 260000points) when printing 300DPI we get ... intention. And especially not to be afraid to express your artistic opinion.

Description : What parameters should a lawn mower have for a larger garden. I warn you in advance that I don't need a tractor. It would not be appropriate. The garden has about 1800 m2.

Last Answer : Read the posts and you will be wiser! Discussion

Description : For the process `H_(2)O(l) (1 "bar", 373 K) rarr H_(2)O(g) (1"bar", 373 K)` the correct set of thermodynamic parameters is

Last Answer : For the process `H_(2)O(l) (1 "bar", 373 K) rarr H_(2)O(g) (1"bar", 373 K)` the correct set of ... S = 0` D. `Delta G = -ve, Delta S = +ve`

Description : Which of the following reaction parameters will change due to addition of a catalyst ?

Last Answer : Which of the following reaction parameters will change due to addition of a catalyst ? A. ... constant D. Both equilibrium constant and rate constant

Description : Growth can be measured in various ways. Which of these can be used as parameters to measure growth?

Last Answer : Growth can be measured in various ways. Which of these can be used as parameters to measure growth?

Description : In python are actual and formal parameters matched up by position or name?

Last Answer : When we invoke a function, we pass the actual arguments in thesame order specified by the function's formal arguments, thus it isthe relative position that determines how they are matched. ... passed by reference (in which casethe formal argument becomes an alternative name for the actualargument).

Description : Which of the following statement(s) is/are true concerning the treatment of MOFS? a. Prevention and therapy of MOFS requires control of the infectious or inflammatory source b. Restoration of normal ... of the nature of gut injury, total parenteral nutrition is preferred for most patients with MOFS

Last Answer : Answer: a, c The therapy of MOFS is directed towards interrupting the involving pathophysiologic process and providing an optimal physiologic environment for healing and recovery. ... Enteral absorption and processing of nutrients appears superior to TPN and lessens overall complications

Description : Which of the following parameters is not a primary parameter? a) Resistance b) Attenuation constant c) Capacitance d) Conductance

Last Answer : Ans: B

Description : In four stroke engine which of the following is also known as power stroke a. Suction stroke b. Compression stroke c. Expansion stroke d. Exhaust stroke (Ans:c) Measurements of fuel and air ... into IC engine,___________its efficiency A. increase B. decrease C. does not alter D. unpredictable on

Last Answer : ANSWER : B

Description : If the performance of diesel engine of different sizes, cylinder dimensions and power rating are to be compared, which of the following parameters can be used for such comparison? (a) Swept volume (b) Air fuel ratio (c) Specific brake fuel consumption (d) Volumetric efficiency

Last Answer : Ans :c

Description : Keeping other parameters constant brake power of diesel engine can be increased by (a) Decreasing the density of intake air (b) Increasing the temperature of intake air (c) Increasing the pressure of intake air (d) Decreasing the pressure of intake air

Last Answer : Ans : c

Description : When a small spherical body falls in a viscous fluid, its speed increases first, then deceases and eventually it acquires a constant speed called the terminal speed. The terminal speed depends upon (a) The ... ) The density of the body (c) The diameter of the body (d) All the above parameters

Last Answer : Ans:(d)