dimanche 1 septembre 2019

Will putting "integer" instead of "int" as the return type of the main function cause compile-time errors in C++11?

Is there any difference between the two attached codes?

Code 1:

#include <iostream>  
integer main()
{ std::cout << "Hello world!"; }

Code 2:

#include <iostream>  
int main()
{ std::cout << "Hello world!"; }

Thank you in advance.

Aucun commentaire:

Enregistrer un commentaire