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 change Kylix directory permissions for all users when installed as root?
How to Remove drives listed in a TDriveComboBox ?
what are the Current MSACCESS driver limitations ?
How can I create an identical binary executable in Delphi?
I'm using Delphi 4/5 and have am trying to fill a RichEdit control with both European characters and Thai characters - while I can change character colours the font stays with what was selected for the control:- reLangB.SelAttributes.Color :=dCol; reLangB.SelAttributes.Name :=FontName[dLang]; reLangB.SelAttributes.Charset :=FontChar[dLang]; reLangB.SelAttributes.Style :=[]; reLangB.Lines.Add(dText); The FontName and FontChar arrays contain the font info, and using a similar method for Captions and EditBoexes works! Anybody any ideas? Thanx in advance!
How much does MTS improve connect times?
What are the Color reduction techniques for graphics?
what are the Differences between Create(Self) and Create(Application)?
How to get serial number of my drive ?
Do we need Local InterBase on the client machines along with my BDE application?
How to Declare a SafeArray in the type library editor?
What is Typecasting ?
How to create a bitmap from an icon?
How to keep seconds from being included in the display when using TDateTimePicker?
Do I have to understand object-oriented programming to use Delphi?