How about this program?
 

#include <stdio.h>

#define FULL ma##in

int FULL (){
    printf("hello world");
    return 0;
}

 

Does it satisfy the constraints?



 
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


      




want to know more about me
http"//ww.livejournal.com/users/arunachalam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to