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...

Is it possible to run a c program without using main?If yes
HOW??

Answer Posted / vrushali

Hi Valli,

I tried the solution provided by you. It doesnot work.

Please chk the compliation procedure.
gcc -g -nostartfiles main.c


I am getting the following:
/usr/bin/ld: warning: cannot find entry symbol _start;
defaulting to 080481a4

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are structure types in C?

1072


What is the use of sizeof () in c?

1013


Why do we use & in c?

969


What is logical error?

1089


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1064


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

1214


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1156


What is malloc() function?

1117


What are the features of the c language?

1059


What are qualifiers in c?

1004


What are header files why are they important?

1070


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1727


Explain what is the benefit of using #define to declare a constant?

1129


Is null valid for pointers to functions?

1133


What is the purpose of realloc()?

1106