Computer Science, asked by karankhosla2867, 9 months ago

how many main functions can be used in the c lenguage​

Answers

Answered by meghanabhuvana
0

Answer:

Main() function is the soul of any programming language be it C, C++ or JAVA.

Whenever we write a program we include a main() function in it and write the code into it. Whenever we compile and run the program the compiler searches for the main() function in the program first and then start executing the instructions that are written in it one by one.

So we can have one and only one main() function in a program.

Let us suppose we are havin two main() functions in a program.

When we run the program the compiler will search for the main() function. But as there will be two main() functions it would lead to ambiguity i.e compiler will not be able to decide that which main() function is to be used.

Therefore we can have only one main() function in a program

Explanation:

Hope it helps you

Answered by raviwanje155
7

Answer:

Mark as brainlist and like my answer

Explanation:

As always, a function is a module of code that takes information in (referring to that information with local symbolic names called parameters), does some computation, and (usually) returns a new piece of information based on the parameter information.

Basic Function Design Pattern

For the basic syntax of a function in C, please refer to the C Function Design Pattern chapter.

Dot C files

The "recipe" for a function (the function's code) is always stored in a ".C" file. In C there can be many functions written in a single file.

Similar questions