The published C++ doesn't allow main() to have void type.
So, always return type of main should be integer in C++.
#include <iostream>
int main()
{
int i = 10;
int j(20);
cout << "Value of i " << i << " j " << j << endl;
return 0;
} |
Value of i 10 j 20 |
Comments
Post a Comment