+ 1
What is int main ()
what does those bracket means ? what int stands for?
3 Respuestas
+ 2
an in integer is any number that doesn't include decimal points(positive or negative)
using int main means that function returns an int.
int main is the entry point of the program, when the program starts the code in the main function is executed.
the brackets can be thought of like a block, it wraps around code inside to keep it in a group.
these questions are kind of hard to answer because to understand one thing you must understand so much more. I hope this helped but I recommend taking or retaking the c++ lesson which will explain all of this in much better terms.
+ 2
integer can hold a wide range of numbers which by convention have come to mean certain things. Such as 0 meaning a successful execution with no problems. This information can then be used by the operating system or whoever else called your program to do something with.
() are called parentheses pair. They represent the list of arguments that the function needs to run. The compiler ensures this.
+ 1
thanks to all