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

How to enroll for the course?
register here then post your requirements,do provide your ph no by which trainers can contact you or you can individually search for trainers nearest to your location and contact them.
Alpana
How do I get 6 power 13 in c language?
#include <stdio.h> #include <math.h> int main() { double result = pow(6, 13); printf("6 to the power of 13 is: %f ", result); return 0; }
Raju
0 0
6
How do I get C help in Ubuntu?
Use command line tool 'man'. for example 'man printf' will give you details regarding printf function C
Ashmita
0 0
5
What is an lvalue?
L-Value stands for left value L-Value of Expressions refer to a memory locations In any assignment statement L-Value of Expression must be a container(i.e. must have ability to hold the data) Variable...
Nagasanthoshi
Why is the C language important?
C language is a high-level, general-purpose programming language. It provides a straightforward, consistent, powerful interface for programming systems. That's why the C language is widely used for developing...
Ganesh
0 0
5

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

Ask a Question

Related Lessons

Efficient Learning Strategies
Type your notes after class Write your notes onto flashcards - Scrabble -Make posters Review flashcards while walking, at gym, etc. Dog-ear pages in the reading where you can find...

C and C++ programming with memory level debugging
Understanding C and C++ programming by using memory level debugging. Step 1: Understand the Memory map of C executable Step 2: Start memory level debugging using popular IDE Step 3: Find the memory...

Some interview questions and answers for fresher level on Pointers
What is a void pointer? Void pointer is a special type of pointer which can reference or point to any data type. This is why it is also called as Generic Pointer. As a void pointer can point to...

C Program-String Comparison
// WAP to compare strings entered by the user //Header files #include<stdio.h>#include<conio.h>#include<string.h> //Main function void main(){ char str1; char str2; int comp; //Function...
S

Functions In C Programming
A C-language program is nothing but collection of Function, these are the building blocks of a ‘C’ program. Generally, a function mans a task. “Function is a...

Recommended Articles

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 >

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 >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

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