Computer Science, asked by thank6507, 10 months ago

What are functions? Explain in detail. (Question is from ch-creating calculator using java)

Answers

Answered by sumitranaik38467
0

Answer:

A function is a group of statements that together perform a task. Every C program has at least one function, which is main(), and all the most trivial programs can define additional functions.

You can divide up your code into separate functions. How you divide up your code among different functions is up to you, but logically the division is such that each function performs a specific task.

A function declaration tells the compiler about a function's name, return type, and parameters. A function definition provides the actual body of the function.

Similar questions