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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -