answersLogoWhite

0


Best Answer

You are referring to default arguments. However, C does not support default arguments. That's a C++ feature.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What parameter to a function is one for which an automatic value is supplied if do not explicitly use one in C programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can you have in-out parameter in a function if not then why?

because function have return sts thatway it is not necessary out parameter to function


What is an actual parameter?

A formal perimeter refers to an identifier that is used in a method to stand for the value that is passed into the method by a caller. An actual perimeter on the other hand refers to the actual value that is passed into the method by a caller.


What is a variable that is used within a function?

If the variable is declared within the function body, it is a local variable, one that is local to the function. Local variables fall from scope when the function returns, they are only accessible within the function. However, local variables can be returned by value, which creates an automatic variable that is returned to the caller. If the caller does not store the return value, the automatic variable falls from scope when the expression containing the function call ends. However, the expression may evaluate the return value without storing it. Note that functions cannot return local variables by reference since the local variable falls from scope when the function returns. If the variable is passed as an argument to the function, then the variable is a parameter of the function. Arguments may be passed by value or by reference, depending upon the function signature. Passing by value means the function parameter is a copy of the argument (if the argument is an object, the object's copy constructor is invoked automatically). Thus any changes made to the parameter within the function are not reflected in the argument that was originally passed, and the parameter will fall from scope when the function returns. However, the value of the parameter can be returned as previously explained. Passing by reference means the function parameter refers directly to the argument that was passed. Thus any changes made to the parameter are reflected in the argument. Parameters that are declared as constant references assure the caller that the reference's immutable members will not be altered by the function. If the parameter is a non-const reference but the caller does not wish changes to be reflected in the argument, the caller should pass a copy of the argument instead.


What does the cons function do in clojure?

Returns a new sequence where the first parameter is the first element and the second parameter is the rest.


Why void is used in c language?

void as function return-type means no return value void as function parameter means no parameter void * as pointer type means generic pointer

Related questions

Does a function always require a parameter?

No. For example, function getpid never requires a parameter.


Can you have in-out parameter in a function if not then why?

because function have return sts thatway it is not necessary out parameter to function


What is an actual parameter?

A formal perimeter refers to an identifier that is used in a method to stand for the value that is passed into the method by a caller. An actual perimeter on the other hand refers to the actual value that is passed into the method by a caller.


What is a variable that is used within a function?

If the variable is declared within the function body, it is a local variable, one that is local to the function. Local variables fall from scope when the function returns, they are only accessible within the function. However, local variables can be returned by value, which creates an automatic variable that is returned to the caller. If the caller does not store the return value, the automatic variable falls from scope when the expression containing the function call ends. However, the expression may evaluate the return value without storing it. Note that functions cannot return local variables by reference since the local variable falls from scope when the function returns. If the variable is passed as an argument to the function, then the variable is a parameter of the function. Arguments may be passed by value or by reference, depending upon the function signature. Passing by value means the function parameter is a copy of the argument (if the argument is an object, the object's copy constructor is invoked automatically). Thus any changes made to the parameter within the function are not reflected in the argument that was originally passed, and the parameter will fall from scope when the function returns. However, the value of the parameter can be returned as previously explained. Passing by reference means the function parameter refers directly to the argument that was passed. Thus any changes made to the parameter are reflected in the argument. Parameters that are declared as constant references assure the caller that the reference's immutable members will not be altered by the function. If the parameter is a non-const reference but the caller does not wish changes to be reflected in the argument, the caller should pass a copy of the argument instead.


What are arguments in C programming?

Arguments are used mostly in functions (or methods). Basically it can be any input parameter(s) which a function(s) can use to do it's work. For instance, sin(x) sinus is a function and x is it's argument.


What is parameter is parameter is?

formal parameter is we accept in function body/defination actual parameter is we pass from calling function to function body. Ex : int a,b; void add (a,b) ; where a & b is actual parameter // calling function void add(int i,int j) where i & j are formal parameter // function body { } By Darshan Paliwal


What is the function of the replace parameter in Oracle?

The function of the replace parameter in Oracle is to replace a sequence of characters in a string with other characters, usually in sets of characters.


Why you are using VOID in C programming?

You don't use 'VOID', but 'void'. It means different things, such as:- void as function type means no return value- void as function parameter means no parameters- 'void *' as pointer-types means generic pointer


What is call by refrence?

When calling a function, passing a variable's address as function parameter.


What does the cons function do in clojure?

Returns a new sequence where the first parameter is the first element and the second parameter is the rest.


What is Call by value?

when the function is call by value,u are making any changes in formal parameter does not reflect the actuasl parameter.


How do I use the IF function?

The IF function takes three parameters. The first is an expression, such as an inequality, that will evaluate to either true or false. If the expression is true the second parameter is used, otherwise the third parameter is used.