Computer Science, asked by sainionkar94, 9 months ago

the function main() is?​

Answers

Answered by Anonymous
5

Answer:

the function main is to initiate a void program

Answered by gs85329240
3

The main () function as a built-in function:

1.The compilers of most of the programming languages are so designed that the main () function constitutes the entry point of the program execution. It defines the point from which the program has to start executing itself though there are many other sub-routines and other user-defined functions included in the program.

2.The main () function is the controlling section of our code because even though the control of the program is shifted to the UDF (user defined function) during the program execution after a function-call from main (), once it's execution is completed, the control is transferred back to the main () function with some or no return value (as in the case of a void function).

3.The main () function provides a platform for calling the first user-defined function in the program.

4.It has got its own functionality and structural features with respect to the usage of syntaxes which cannot be changed by the end user unless he writes his own compiler. But the UDF's have functions and structures designed by the user or programmer.

5.The main () has function definition (the code of a function) but it doesn't have any function declaration. Though we often use int main () or void main (), these declarations are not compulsory. But a UDF should have such declarations.

If the answer is helpful to you please mark brainlist

Similar questions