+ 2
What Is the use of int main()
4 ответов
+ 16
Imagine you have a storybook, with characters and plots. The characters are the variables, the plots are your functions. The story itself, is your main(). The first page marks the starting point of your program, the last page returns 0.
+ 8
Every program begins with the int main ()
You need a main () function for the program to work.
+ 7
"main()" is the main fuction of the program, it's where the program starts to execute. "int" in front of "main()" says that it returns integer value.
+ 2
Remove it from your code and you will see if it is useful or not.