answersLogoWhite

0


Best Answer

function name and arguments

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the two parts required to use a function in a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the two parts required to use a function in a program in computer programming?

1st Data type2ed Function name Must required to use a function in a program


What are the two parts of compilation?

1) source program to object program 2)object program to object program output


Program defined function c?

function is a self contained block or sub program of two or more statements which performs a special task when called.


Define function in c program?

function is a self contained block or sub program of two or more statements which performs a special task when called.


What is it called when two body parts combine their function?

This is known as synergy, where two or more body parts work together in a coordinated manner to perform a specific function more efficiently.


What is function in oop?

A function is a block of code that has a name and it has a property that it is reusable i.e. it can be executed from as many different points in a C Program as required.Function groups a number of program statements into a unit and gives it a name. This unit can be invoked from other parts of a program. A computer program cannot handle all the tasks by it self. Instead its requests other program like entities - called functions in C - to get its tasks done. A function is a self contained block of statements that perform a coherent task of same kindThe name of the function is unique in a C Program and is Global. It neams that a function can be accessed from any location with in a C Program. We pass information to the function called arguments specified when the function is called. And the function either returns some value to the point it was called from or returns nothing.We can divide a long C program into small blocks which can perform a certain task. A function is a self contained block of statements that perform a coherent task of same kind.Structure of a FunctionThere are two main parts of the function. The function header and the function body.int sum(int x, int y){int ans = 0; //holds the answer that will be returnedans = x + y; //calculate the sumreturn ans //return the answer}


What are the two main function of cell wall?

to protect the rest of the parts of that cell and to hold all of the parts together


What are two important parts of physical fitness program?

Physical-related and Mental-related.


Which two of the following roles must function effectively for society as a whole to function effectively?

All Parts Must work together in Harmony


What is the function of a bearing?

To bear a load between two moving parts with the minimum amount of friction


What are two parts in the hindbrain and what is there function?

The pons, the medulla, and the cerebellum are the three parts of the hindbrain. The hindbrain controls most voluntary and involuntary movements.


What is the difference built in functions and user defined functions?

There are two types of functions in C++: Built-in or standard Library Function User defined function BUILT-IN FUNTION Built-in function which are also called Standard Library Functions are the functions provided by the C++ and we do not have to write them. These functions are included in the Header Files They are mostly written at the start of the Program They cannot be changed. EXAMPLE: conio.h; clrscrn; , etc. USER-DEFINED FUNCTION A user-defined function is a function defined by the programmer. It allows the programmer to write their own function. It allows the programmer to divide the program in many parts, which makes it easy for the programmer to rectify or modify the program; as it is easy to locate & jump to any part of the program. A programmer can write groups code to perform a specific task and that group of code is given a name (identifier).