you can not write a c program without main function.
main is the basic entry point into any c program.
so be sure to include it
and abbout your question arul can you explain in which conditions you want to use such instruction?
On 5/25/06, Sriram narasimhan <[EMAIL PROTECTED]> wrote:
hi arul,i think you can write a program in c without main().The main fn is used to start the program so if you could direct the compiler how to proceed about then you can definitely write the program.sriram
On 5/14/06, Arulanandan P <[EMAIL PROTECTED] > wrote:
hi ,
Can any one let me , is it possible to write C programs without main() function.. If it is possible then how do we change the start up routine which transfer the control to the main() function.. Is there any way in the compiler to do this..
Also ,
can i write a simple program , f1.c . The content of the file is :
int main =0 ;
just the one line of code .. when i compile it , there is no error. but when i run it i get error message: Illegal Instruction..
Can anyone help me out..
regards
arulanandan
--
••::aLi WajdaN::••
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---
