UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Why does execution of a program in C/C++/Java start from only main?

Asked by Last Modified  

Follow 14
Answer

Please enter your answer

MBA Graduate

Main function is calling the other functions of he program and compiler gets this direction while Compiling the code. If it does not find main function then it will also not find the other functions in the code. So, main is required in C program.
Comments

Computer Trainer: Programming & Software Development.

There has to be a MASTER function, which controls all other functions. main is that master function in each programming language.
Comments

Oracle, Hindi, C++, C, MS Office, VBScript,JavaScript,Spoken English etc with 29 years of experience

Because the languages have defined that main() be their entry point. Suppose they left it ambiguous, then you’d have to specify somewhere that method {x} is your starting point which is the same as having a main program which could call that method {x}.
1 Comments

C++ Programming(C/JAVA)

To get this question you need to know the process to which a program go through during compilation, using preprocessor directives all the libraries in header files are opened up and now to implement all of them we need a programming are where a programmer can code, that area/scope is termed as main function.Main(...
read more
To get this question you need to know the process to which a program go through during compilation, using preprocessor directives all the libraries in header files are opened up and now to implement all of them we need a programming are where a programmer can code, that area/scope is termed as main function.Main( ) is like a trunk to a tree(i.e. program),from where we can access all the library components including the stem of the tree(i.e. predefined/userdefined functions). Happy Programming Regards Sachin read less
Comments

JS Academy in Association With Cryptic Technologies Pvt. Ltd.

Because the languages have defined that main() function as the entry point. Suppose they left out main function, then you have to specify somewhere that method manually as your starting point which is the same as having a main program which could call that method automatically.
Comments

Tutor

the main method is an entry point for the compiler. In Java When class is loaded JVM is looks for main class.
Comments

It Professional Trainer With 20 Years of Experience in in Key Aspects of Software Development

main is an entry point (like a main door) for your code written in C / C++ /Java/C# . So without main the code cannot be executed.
Comments

Microsoft Certified Trainer with 12+ years of experience in IT Training

because all these languages are defined in such a way that the main function will be the entry point for the program execution.
Comments

Assistant Professor

Because the languages have defined that main() be their entry point. Suppose they left it ambiguous, then you’d have to specify somewhere that method {x} is your starting point which is the same as having a main program which could call that method {x}.
Comments

Because the languages have defined that main() be their entry point. Suppose they left it ambiguous, then you’d have to specify somewhere that method {x} is your starting point which is the same as having a main program which could call that method {x}. Would you rather write code that just starts...
read more
Because the languages have defined that main() be their entry point. Suppose they left it ambiguous, then you’d have to specify somewhere that method {x} is your starting point which is the same as having a main program which could call that method {x}. Would you rather write code that just starts up some random function? Or do you have a better alternative? If not, then there is no point to this question? read less
Comments

View 9 more Answers

Related Questions

Why is a compiler used for language C and not an interpreter?
C is a structured programming language. It’s code consists of many macros, function calls references etc., which is required to be decoded before program’s execution can take place, so that any error is...
Savitha
0 0
5
What is the best website to learn c language?
In case of problems you will face while making programs, you may take help of google. There may be the situation when you need a helping hand to make clear the basic concepts of programming and internal...
Nom
Is C destined to die?
No not at all
Anubhav
0 0
5
What is C? Where it is used ?
C has the advantage that it is a relatively small language, which makes it easy to implement a C compiler (whereas a C++ compiler is a monster to write), and makes it easier to learn the language. C...
Chandi
Is a default case necessary in a switch statement?
NO, default is optional and you can omit it if there is no use of it.
My

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

How to write shared library program using C Programming?
Library Name : hellofilename : hello.c#include void Hello(){ printf("Hello World .. How are you 1\n");}======================================Header File:hello.h#ifndef __HELLO_H#define __HELLO_Hvoid Hello(void);#endif===============================Application...

Tress And Its Traversal
Depth First Traversals:(a) Inorder (Left, Root, Right) : 4 2 5 1 3(b) Preorder (Root, Left, Right) : 1 2 4 5 3(c) Postorder (Left, Right, Root) : 4 5 2 3 1 Trees are one of the data structures like...

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

C Program-Upper Case Demo
/*WAP to print the character entered by user in upper case*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ char ch; //Function for clearing screen clrscr(); ...

Programing Languages Learning Tricks
You want to learn that new language or library or framework as soon as possible, right? That’s understandable. Fortunately, there are a handful of tips that can help you to better retain all of that...

Harshal G.

0 0
0

Recommended Articles

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more