Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 02-23-2018, 01:04 AM   #1
thevyakar
Registered User
 
Join Date: Nov 2017
Location: USA
Posts: 113
C

Can we compile a program without main() function?
thevyakar is offline   Reply With Quote

Old 03-07-2018, 09:11 PM   #2
mvminfotechseo
Registered User
 
Join Date: Sep 2017
Posts: 202
So the third line “int begin” is replaced by “int main” by the preprocessor before the program is passed on for the compiler. So actually C program can never run without a main() . We are just disguising the main() with the preprocessor, but actually there exists a hidden main function in the program.
mvminfotechseo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:15 PM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.