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
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
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
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
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?
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
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 .
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
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