answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: When you type a function what appears after you type the opening parenthesis?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What should a function include?

A function must include an interface and an implementation. In some programming languages the two may be declared separately, particularly if the language is declarative. The interface typically consists of the function's return type followed by the function name and the type of its arguments, if any, usually enclosed in parenthesis (often round brackets). In untyped languages, the return type and the type of arguments may be optional, but the arguments must be formally named while the return value usually has the same name as the function. In typed languages the types must be specified but the names are optional unless the interface and implementation are combined. In typed languages that support function overloading, the function name and the number and type of the arguments form the function's unambiguous signature. The signature also includes the constness of the function and its arguments where supported, but does not include the return type nor any argument default values that may be provided. The function's implementation must duplicate the interface (if declared separately) but must also formally name the arguments. The function body is usually parenthesised (often in curly braces).


What does the C statement int open parenthesis asterisk f close parenthesis open parenthesis int asterisk close parenthesis declare?

The declaration int (*f) (int*); declares a function pointer named f. The function pointer can be assigned the address of any function that accepts a pointer to int and returns an int. Function pointers can be used to pass functions to functions. Normally we use typedefs to simplify the notation of function pointers: typedef int (*f) (int*); int x (int*); int y (int*); f fp; // declare a function pointer of type f int z = 42; fp = x; // point to the x function fp (&z); // invoke function via pointer fp = y; // point to the y function fp (&z); // invoke function via pointer. A typical usage of function pointers is to provide a predicate for a comparison sort algorithm. This makes it possible for the same sorting algorithm to compare objects using different predicates. For example: typedef bool (*pred) (int, int); // function pointer type named pred void sort (int a[], size_t len, pred func) { // simple shell sort for(int i=len/2; i>0; i=i/2) { for(int j=i; j<len; j++) { for(k=j-i; k>=0; k=k-i) { if( !func (a[k+i], a[k]) // invoke the predicate function { swap (a[k], a[k+i]); } } } } } // Declare predicates... bool less_than (int a, int b) { return a<b); bool greater_than (int a, int b) { return a>b; } int main () { int x[] = {3,5,2,4,1}; sort (x, 5, less_than); // sort array of 5 elements in ascending order sort (x, 5, greater_than); // sort array of 5 elements in descending order return 0; }


What will be the prototype of a user defined function?

In C programming, there are no built-in functions; all functions are user-defined. In order to use a function it must first be declared. This can be achieved by importing the header file containing the declaration (via the #include compiler directive) or by typing the declaration by hand. The definition (implementation) of a function is not required in order to use a function, but if a function is used it has to be defined somewhere (undefined functions will cause a link error). Where a function is used by several translation units, placing the declaration in a header file ensures the declaration is consistent across all translation units. Grouping declarations by purpose allows us to import several declarations at once. Declarations that are not used are simply ignored. A declaration informs the compiler of the function's name and type, and the number and type of its arguments, if any. This describes the interface to the function. A function's type is denoted by its return type. A function that has no return value is simply declared void (no type). The return type always comes first in a declaration, followed by the function name, which must be a unique identifier within the scope in which it is declared (global or local scope). A local name will mask a global name, effectively hiding it from the local scope. Function arguments (the formal arguments of the function) are delimited by parenthesis after the function name. A single argument of type void denotes no arguments while multiple argument types must be separated by commas (void types are not permitted in a multiple argument function). The complete declaration is terminated by a semi-colon immediately after the closing parenthesis. If the declaration is also a definition, the function body (the implementation) replaces the closing semi-colon. To assist with documentation, the formal arguments of a declaration may be named (unless the argument is void). However, where names are given, they need not match the corresponding names provided by a function's definition, where defined separately. Using longer descriptive names in the declaration helps document their purpose, while the definition can use shorter names that are easier to work with.


Makeup gas compressor spill back valve function?

It is a quick response valve, which opens fully in 1.5-2 seconds. basically will be of fail open type. Its opening depends on the surge control.


What part of a function definition specifies the data type of the value that the function returns?

The function header. The return value is written before the name of the function. This return type must match the type of the value returned in a return statement.

Related questions

When you type a function in Excel what appears after you type the opening parenthesis?

Formula autocomplete


What function would you use to find the largest value in a range of cells?

In Excel, you can use the max() function. You can type a range (or several ranges) within the max() function. For a single range, just type: =max( and select the desired range, then type the closing parenthesis.


When the function argument box appears in excel?

When you choose the Insert Function command and then pick a function to use, it will appear so that you can type arguments into it.


What is parenthesis?

Parenthesis can refer to a type of punctuation consisting of an open and closed bracket. It also refers to an added clause or word in a passage that is not grammatically necessary but adds meaning.


What does excel automatically do to complete the average function when you click the enter box or press the enter key?

Excel automatically appends the _____ to complete the AVERAGE function when you click the Enter box or press the ENTER key.


How do you do the lifepoints on kcvds?

Type /add(LifePointsNumber) to increase your health Type /sub(LifePointsNumber) to decrease The parenthesis mustn't be made


For 0x90degrees solve the equation 5tan x equals 1?

5tanx=1 turns into tanx=1/5 then you use a calculator use the calculator function tan^(-1) this function should be the 2nd function of tan then in the parenthesis that come up type in 1/5 you should get .1974 therefore tanx=1/5 => x=.1974


What do you type for smileys?

the equal sign or the colon or a semi colon with a p or a parenthesis :) :p ;) ;p =)


What type of metal causes the Roman numerals to be in parenthesis to represent the charge of a metal?

A transition metal.


How do you type a bunny?

Step 1Use the open and close parentheses twice like this: ()() with no space in the middle of any of the keystrokes. This creates the ears of the bunny character. Hit "Enter" to move down a line.Step2 Type in the following keystrokes: an open parenthesis, hyphen, underline, another hyphen and finish with the close parenthesis. This is the bunny's face. (-_-) Hit "Enter" to move to the third line.Step3 Create the tail of the bunny by using a lower case "c" and make a hint of the body and a foot with two open parenthesis followed by a double quotation mark and close parenthesis: c((")Step 4 Repeat a single open parenthesis, quotation mark and close parenthesis like shown to make the other foot of the bunny: c((")(") Type this on the third line as well, right next to the other foot of the bunny character.Step5 Squint your eyes, move away from the computer screen or try making the bunny without any text or other pictures around it to get a visual of the animal. The bunny appears to be sitting down, facing diagonally with narrow eyes.()()(-_-)c((")(")


What should a function include?

A function must include an interface and an implementation. In some programming languages the two may be declared separately, particularly if the language is declarative. The interface typically consists of the function's return type followed by the function name and the type of its arguments, if any, usually enclosed in parenthesis (often round brackets). In untyped languages, the return type and the type of arguments may be optional, but the arguments must be formally named while the return value usually has the same name as the function. In typed languages the types must be specified but the names are optional unless the interface and implementation are combined. In typed languages that support function overloading, the function name and the number and type of the arguments form the function's unambiguous signature. The signature also includes the constness of the function and its arguments where supported, but does not include the return type nor any argument default values that may be provided. The function's implementation must duplicate the interface (if declared separately) but must also formally name the arguments. The function body is usually parenthesised (often in curly braces).


What is a dillga in Pokemon Diamond?

Dialga is the legendary Pokemon that appears on the opening screen. After rescuing the legendary trio from Cyrus, it will appear on mt coronet. It is a steel/dragon type Pokemon and will know roar of time.