what is the difference between the int main () in c++ and that of java
I actually have no idea about computer
But this link can help u. https://www.tutorialspoint.com/difference-between-void-main-and-int-main-in-c Hope this works out!!
I am not very familiar with C++, but I know that in Java the "main" method can be declared as static, whereas in C++ "main" cannot be declared as static. More details on "main" in C++ can be found in this article https://docs.microsoft.com/en-us/cpp/cpp/main-function-command-line-args?view=msvc-160 Also, normally when I write a "main" method in Java, I give it one argument, args, but the article instructs the use of two arguments, argc and argv. I'm not sure if this is a fundamental difference or just a matter of convention, but it may be worth mentioning
Join our real-time social learning platform and learn together with your friends!