2 Answers - Sort by: Date | Rating
The main() function is always, always, user defined. It is the part of a program that makes the other functions, whether they be library functions or user defined ones, run. It is the starting point of the program.
Every program in C must have a main() function, or it simply will not run. It cannot run without one. When you enter the name of your exe file at the command line, it is the main() function which is executed. It can call other functions or other programs after it starts. The other functions which you, the programmer, create are called inside the main(), while you make reference to library functions.
Javascript, on the other hand, doesn't have a main(), it is a set of functions and the programmer either decides which one will run on loading the html page, or they are called at specific points in the html page, often in response to user interaction.
Every program in C must have a main() function, or it simply will not run. It cannot run without one. When you enter the name of your exe file at the command line, it is the main() function which is executed. It can call other functions or other programs after it starts. The other functions which you, the programmer, create are called inside the main(), while you make reference to library functions.
Javascript, on the other hand, doesn't have a main(), it is a set of functions and the programmer either decides which one will run on loading the html page, or they are called at specific points in the html page, often in response to user interaction.
0
0
Guest
answered 3 months ago
- How Did Gregor Mendel Explain Heredity?
- Explain The Use Of Technology In Information Dissemination Today?
- What Are The Effect Of Information Technology On Accounting?
- How Can You Use Technology To Work More Efficiently?
- How Information Technology Is Useful In Banking?
- Which Principle Did Gregor Mendel Discover About Traits?
- What Lasting Affects Did Elizabeth Have On The Lives Of Others?
- How Education Affects The Government?
- How Globalization Affects Daily Life?
- What Technology Allows A Toaster To Work?
- What Are The Pipelining Hazards?
- What Are The Functions Of Information Technology?
- What Is The Difference Between Online Transaction Processing And Online Analytical Pocessing?
- Is Mendel's Razor Legitimate?
- What Is The Different Between Language And Package?
- What Is Better Levels Of RAID?
- Is Electrical Engineering Better Or Computer Engneering?
- What Is The Significance Of English In The Technology?
- What Are The Effects Of Information System In Our Daily Life?
- How The Use Of Computer Does Today Becomes The Most Extensive Field Of Study And Develop Especially In The Field Of Science And Technology?
- Would You Use The Model If You Are To Develop A Software?
- What Does Legal Feasibility Refer To In Information Technology?
- What Are The Merits And Demerits Of Computerized Information Systems In School?
- Discuss The Merits And Demerits Of The Application Of Information Technology In Business Communication?
- What Is The Relevance Of Information Technology To Financial Risk Management?

New Comment - Comments are editable for 5 min.