Login
Remember
Register
CodersEditor Q&A
Online IDE
Questions
Unanswered
Tags
Users
Ask a Question
Programming Tutorials
Ask a Question
Is it possible for a C++ program to be compiled without the main() function?
0
votes
asked
Jan 21, 2021
by
abitha
(
1.6k
points)
c
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 21, 2021
by
Inba
(
1.1k
points)
selected
Jan 22, 2021
by
abitha
Best answer
No, as the C++ compiler first always executes what's inside of the main function. So it is not possible
Please
log in
or
register
to add a comment.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
239
questions
203
answers
2
comments
692
users
Related questions
What is the process to create increment and decrement statement in C?
What is prototype function in C?
What is the main difference between the keyword struct and class?
How do you print the first non-repeated character from a string using c programming?
What is a default argument in C++?
...