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 to use Paths and Geometric Pens?

1247


'Invalid BLOb handle' error . what does this indicates?

1236


How to dial out through the modem under Win32?

1246


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

1301


How to Write a raw string of data to the printer?

1322






How to Provide lookup capability?

1231


How to Add TrueType fonts to windows in code?

1261


How to insert contents of a file at current position in TMemo?

1298


How to Change the root key ?

1341


How to draw transparent text onto a TBitmap ?

1288


How to Convert 16bit resource to 32bit?

1414


How to Use an animated cursor?

1315


What version of TeeChart is supplied with Delphi 6?

1472


How to Display documents in the default browser?

1137


How to Determine if a combobox is in dropped state?

1340