Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why we should use main in C

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


Please Help Members By Posting Answers For Below Questions

Can I use DLLs developed in C or C++ from Delphi?

963


How to Add accelerator characters to TTabsheets?

1954


What you can contribute to the IBM?.

2385


How to Load a TListView component that contains SubItems?

1665


How to Insert a file at the cursor ?

1863


How to Find all files (or files of a certain type) in a given directory?

1760


How to convert a color to a shade of gray?

1906


Do we need Local InterBase on the client machines along with my BDE application?

1735


How to Show two forms allowing the first to retain focus ?

1654


Why Delphi drawing functions draw one pixel short?

3108


How to Use the LzExpand functions in your applications?

1707


How to Save a QuickReport custom preview to text?

3366


How to Display a file's associated icon?

2066


'Insufficient memory to complete operation' error . what does this indicates?

1881


How to obtain IDAPI32.LIB and IDAPI.H ?

2138