answersLogoWhite

0


Best Answer

Try putting 2 main functions in a program and see what happens rather than asking easy for you to resolve questions here.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

There are one and only one main() functions in a C program with global external scope.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

If you mean function named 'main', then the optimal number is one in every complete program.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Because global symbols must be unique. So you cannot have two function foobar either.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

One.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

No.

This answer is:
User Avatar

User Avatar

Wiki User

6y ago

No.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why there is only one main function in every C programmes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Is calculation a main function of a computer?

Calculation is the only function of a computer!


Is all relation a function?

Not every relation is a function. A function is type of relation in which every element of its domain maps to only one element in the range. However, every function is a relation.


Why you have begin with main function?

You don't have, it's only the program-execution which begins with the main function, but it doesn't have to be the first function in the source-file.


What is the main function of every prophet?

The main function of every prophet is:to call people to worship God, the one and only one God with no partner, no son, no father, no companion, and no associate,to call people to good morals and good deeds, andto convey to people God message and commands.


What is a primary function in C plus plus?

There is no such thing. You probably meant the main function. The main function is the only function that is required as it serves as the entry point of the program.


Is it true that every function is a permutation if and only if it is one to one?

no


When can a graph represent a function?

A graph represents a function if and only if every input generates a single output.


Can every function be expanded in fouriers series?

no every function cannot be expressed in fourier series... fourier series can b usd only for periodic functions.


What programmes are offered at the polytechnic?

There are a wide range of programmes to chose from . It is only on application you will find out what each delivers as they vary quite a bit


Is main a keyword?

No. Main is not a keyword in C or C++. However, your program, when linked, must provide one and only one externally scoped entry point to main(). If you use main in some other context, and you do not provide one and only one entry point main(), then your program will not link nor run.


Is the graph of every line a function?

No. One argument of function may have only one value. So, if it has more than one value, it is not a function.