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
How to Get the current line number of a TMemo?
How to install programatically a printer?
How to set the desktop icon color in code, or make the text behind them transparent?
How to Calculate an angle from two points?
How to capture an image from a video source?
How to Connect to a remote CORBA server?
How to Disable ALT-F4 to prevent form closing
With what commands you can Delete a directory and all the directories with files?
How to Determine the last access time of a given file ?
How to use far pointers?
How to eject a CD-ROM in code?
How to get the version information for a file?
How to Print a web page using the HTML control?
Why is there no "Save" button in the save dialog box?
How to Convert Data in Paradox Tables to InterBase Using Delphi?