Answer Posted / sureshg
No, we can execute a pgm without main also, see here sorry do this pgm in your system with gcc compiler,,,,,
#include<stdio.h>
int exit(int);
{
printf("hello welcome to my answer");
exit(0);
}
while u compile this pgm type
gcc -nostartfiles filename.c
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can I use DLLs developed in C or C++ from Delphi?
How to Add accelerator characters to TTabsheets?
What you can contribute to the IBM?.
How to Load a TListView component that contains SubItems?
How to Insert a file at the cursor ?
How to Find all files (or files of a certain type) in a given directory?
How to convert a color to a shade of gray?
Do we need Local InterBase on the client machines along with my BDE application?
How to Show two forms allowing the first to retain focus ?
Why Delphi drawing functions draw one pixel short?
How to Use the LzExpand functions in your applications?
How to Save a QuickReport custom preview to text?
How to Display a file's associated icon?
'Insufficient memory to complete operation' error . what does this indicates?
How to obtain IDAPI32.LIB and IDAPI.H ?