//Hi,can someone explain what is the difference of declaring the main in C++/C++11
//What is most common may to use or it's metter of personal choice?
int main()
{
return 0;
}
///////////////////
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
///////////////////
int main( int argc, char ** argv )
{
return 0;
}
aluhnev
0
Junior Poster in Training
Recommended Answers
Jump to PostSure.
int _tmain(int argc, _TCHAR* argv[])
is some Microsoft extention and is not part of any C or C++(11) standard.
int main()
orint main(void)
are both valid ways to declair main such that the program ignores any command line arguments.
int main(int argc, char *argv[])
andint main(int argc, …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.