why we should use main in C

Answer Posted / narendra allam

We can write a Program without main() function in C-language.

There should be one entry point in the program, so we need a
function to satrt with. In linker scripts it is mentioned,
we can change it through -e option for 'ld' linker with gcc.

Is This Answer Correct ?    11 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we get access to a database from Delphi?

568


How to Change the font in a hint window ?

1367


How to use sets in code, such as adding to TDBGrid.Options, at run time?

2042


How to Create a Worker Thread for Background Processing ?

1295


'Cannot Load IDAPI Service Library' error. What does this error mean?

1296






How to change Kylix directory permissions for all users when installed as root?

1287


How to create a bitmap from an icon?

1282


How to create Interbase stored procedures that return parameters with TIBQuery?

1171


How to Print Delphi controls using QuickReports?

1279


What are the ways to close a modal form?

468


How to Move a control at runtime with the mouse?

1656


How to get serial number of my drive ?

1383


How to insert an InterBase BLOb in Delphi using LoadFromFile? 2

3775


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

2700


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

563