what is the need for main function in c?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the concatenation operator?

598


Is c object oriented?

529


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

627


What are global variables?

636


Differentiate between calloc and malloc.

746






Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1415


How can I insert or delete a line (or record) in the middle of a file?

564


Suggesting that there can be 62 seconds in a minute?

589


Why doesnt the call scanf work?

655


Write a program to check palindrome number in c programming?

590


What is the difference between far and near ?

674


What is the process of writing the null pointer?

600


Describe how arrays can be passed to a user defined function

772


What does c value mean?

614


What is meant by type specifiers?

650