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 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
How do I write a C program to print the total number of a single-digit prime number using a loop?
total number of single digit prime number that means your prime number starts from 2 and less than 9 so you can take loop for this range
Momin
0 0
7
What are the main characteristics of c programming?
C programming is characterized by several key features that contribute to its popularity and versatility. Here are some of the main characteristics of the C programming language: Procedural Programming: ...
Balendra
0 0
6
Is it necessary for a programmer to start his career by learning the C language first?
no, but c is the basic if u have good analysing skills need to learn if u learn c , you can easy to get the c++ else u have put some effort on this session f c++
Shilpa
What is the program for print calendar?
int fm(int date, int month,year) { int fmonth, leap; //leap function 1 for leap & 0 for non-leap if ((year % 100 == 0) && (year % 400 != 0)) leap = 0; else if (year % 4 == 0) ...
Yatindra

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

Ask a Question

Related Lessons

C Programming basics
C PROGRAMMING BASICS 10 Hours Introduction to ‘ C’ programming –fundamentals – structure of a ‘C’...
O

Om K.

0 0
0

Static and dynamic libraries
A library is a package of code that is meant to be reused by many programs. A static library (also known as an archive) consists of routines that are compiled and linked directly into your program. When...

Dynamic Memory Allocation in C using malloc()
#include <stdio.h>#include <conio.h>//#include <malloc.h> OR#include <stdlib.h>void main(){ int *ptr, i, n, sum = 0; printf("how many elements ? "); scanf("%d", &n);...

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

Do You Know How Is Size Of Structure Defined?
Size of the structure is defined based on multiplies of bigger data type member in the structure. Example: If a structure contains integer, char, short data type, then size of the Structure will be multiples...

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