+ 3

[I'm new here] What is the error ?

#include <iostream> using namespace std int a = 0; while (a < 10) { cout <<"a : "<<a <<endl; a++; } i know thats a noob program, but I really try to understand And what is the utility of "int main ()" ?

18th May 2017, 9:18 AM
Romain Vincent
Romain Vincent - avatar
2 Answers
+ 3
int main() is the starting of program when compiler compiles your program it finds for the int main()
18th May 2017, 9:21 AM
MR Programmer
MR Programmer - avatar