answersLogoWhite

0


Best Answer

function name and arguments

User Avatar

Wiki User

11y 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 is the function of the parts of the lever?

What is the function of each part of the lever


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 two things are required for magnets to function properly?

Attraction and repulsion


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.