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
Post a Comment