what is the need for main function in c?
Answers were Sorted based on User's Feedback
Answer / inamdar
every program execution is starts from the main()
function.compiler starts execution from main()
function.by default it returns integer value.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / kartik
The main() function represenrs starting of the program.When
ever we write main in program the system analyse starts from
tthere
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / musharaf ali
every program start from the main function whatever main is defined anywhere in program.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sanjay bhosale
Every c program execution starts from startup procedure which internally calls exit(main({parameters here})).
so to start execution we need main() function in our program.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shafi shaik
Every Programing Language the program Compilation Starts
with main(). Becase The main() os a Driver function.
Exam any application(valclator , ms-word etc) to clicking
the mouse the application internally execute the
application through the dos prompt
| Is This Answer Correct ? | 0 Yes | 2 No |
Program to find the absolute value of given integer using Conditional Operators
Explain the use of #pragma exit?
What are reserved words?
Do pointers need to be initialized?
define switch statement?
how write a addtion of two single dimensional array using of pointer in c language?
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....
Explain modulus operator. What are the restrictions of a modulus operator?
What does printf does?
How do you initialize function pointers? Give an example?
how to write a c program to print list of fruits in alpabetical order?
What are the functions to open and close the file in c language?