Can C program be used without main function? -


from fortran code, intend run c code (to read file) , fetch read information. main program fortran code, uses function written in c processing. in c code, necessary run main function?

if fortran calls c function, c code not need main() function.

the main() function of c program entry point. system loads .exe, transfers control startup code, address mentioned in .exe file (the startup code called crt, c run-time start-up). run-time startup initialization , transfers control user code. user code entry point main().

since fortran main program, no c run-time start-up needed , no main() needed.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -