[algogeeks] Re: Writing C program without main()

2006-05-29 Thread Ankur Aggarwal
yes most importantlymain functionis a user defined function... 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

[algogeeks] Re: Writing C program without main()

2006-05-28 Thread aliwajdan ali
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

[algogeeks] Re: Writing C program without main()

2006-05-27 Thread Arunachalam
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

[algogeeks] Re: Writing C program without main()

2006-05-27 Thread Mohammad Moghimi
On 5/27/06, Arunachalam [EMAIL PROTECTED] wrote: How about this program? #include stdio.h #define FULL ma##in int FULL (){ printf(hello world); return 0;} Does it satisfy the constraints? NO On 5/25/06, Sriram narasimhan [EMAIL PROTECTED] wrote: hi arul, i think you can write a program in c

[algogeeks] Re: Writing C program without main()

2006-05-27 Thread Sriram narasimhan
Hi arunachalam The program you have suggested is not working...can you tel me any other way... Sriram On 5/27/06, Arunachalam [EMAIL PROTECTED] wrote: How about this program? #include stdio.h #define FULL ma##in int FULL (){ printf(hello world); return 0;} Does it satisfy the constraints?

[algogeeks] Re: Writing C program without main()

2006-05-25 Thread Sriram narasimhan
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

[algogeeks] Re: Writing C program without main()

2006-05-21 Thread Mohammad Moghimi
I got the following error when I ran ``ld -e test.o -e f'' where f is a function -- int f() { } -- ld: warning: cannot find entry symbol f; defaulting to 08048094 :D On 5/20/06, Harender Bisht [EMAIL PROTECTED] wrote: hi , I do not know you can do it with out assembly language .

[algogeeks] Re: Writing C program without main()

2006-05-15 Thread Thomas.Chang
The main() is just an entry to a program, telling the computer to execute right here. So if you can tell the CPU in other ways, you can abandon main(). That's why when computer starts, POST will be triggered, CPU just fetch the first instruction from bios and execute. deepblue wrote: Hi

[algogeeks] Re: Writing C program without main()

2006-05-14 Thread deepblue
Hi Arulanandan P, Ya, I would say that if you use assembly language routine mnemonics then you can do that. I dont know exactly how to do that, however I feel this is the only way to do such. Regards, -DeepBlue --~--~-~--~~~---~--~~ You received this message