what is the need for main function in c?

Answers were Sorted based on User's Feedback



what is the need for main function in c?..

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

what is the need for main function in c?..

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

what is the need for main function in c?..

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

what is the need for main function in c?..

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

what is the need for main function in c?..

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

Post New Answer

More C Interview Questions

convert 12345 to 54321 withoutusing strig

5 Answers  


how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help

5 Answers  


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

1 Answers  


Explain how can I right-justify a string?

0 Answers  


what does ‘segmentation violation’ mean?

1 Answers  


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

0 Answers  


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

1 Answers   91mobiles, Amazon, App Guruz, College School Exams Tests, Folio3, Infosys, Omega, Planin, Riphah International University, Subex,


What are qualifiers in c?

0 Answers  


How many types of functions are there in c?

0 Answers  


inline function is there in c language?

4 Answers  


How many types of arrays are there in c?

0 Answers  


I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.

1 Answers  


Categories