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

How to disable the Delphi / Borland C++ Builder splash screen ?

3101


How to Access a grid's column or row by name ?

1602


What is DCOM Dependency?

1694


'Interface mismatch. Engine version different' . what does this error indicates?

2587


Are there any tools to help me migrate my applications to Delphi?

747


How to Access HKEY_LOCAL_MACHINE under NT without Admin?

1691


How to Implement the VB TwipsPerPixel in Delphi ?

1737


How to get serial number of my drive ?

1755


what are Hetergenious joins ?

1630


How to Declare a SafeArray in the type library editor?

2120


What are the Color reduction techniques for graphics?

1778


How to Re-execute export From Table ?

1581


How to debug an Apache Shared Module?

1728


How to Flush binary file from disk cache to disk ?

1911


How to Hide the application from the Windows Taskbar?

1607