Can we write a program without main() function?

Answer Posted / samarth

yes, we can write C programs , without main() functions.
though they are not the kind of programs we use in everyday
life .For example linux kernel source code do not have any
main() function.

for details u can visit :

http://samarthonweb.blogspot.com/2009/08/c-programe-with-no-main-function.html

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I open files mentioned on the command line, and parse option flags?

597


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1533


How can this be legal c?

657


What is the difference between typedef and #define?

552


Which is more efficient, a switch statement or an if else chain?

585






Are pointers really faster than arrays?

570


What does %p mean?

603


How to implement a packet in C

2401


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

661


What will be your course of action for a push operation?

669


How do you define a string?

660


What is calloc()?

633


Write a program to reverse a linked list in c.

649


What is s in c?

623


What does the && operator do in a program code?

701