answersLogoWhite

0

If this is a homework assignment, you really should try to answer it on your own first, otherwise the value of the reinforcement of the lesson due to actually doing the assignment will be lost on you.

Every C or C++ program (but see below) needs one and only function named main. The standard prototype is int main (int argc, char *argv[]); The run-time library looks for main as its first function to call after startup initialization.

In a Microsoft Windows application, the entry point is winmain. Operation is similar, though parameters are different.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: Does c plus plus need a function named main?
Write your answer...
Submit
Still have questions?
magnify glass
imp