What is the purpose of int main()?

i tried to execute program without writing int in "int main " and without “return 0” and it executed so why do we need these two functions everytime? what the meaning of word “int” in “int main()” function and what is the use of return 0;…???

this cann’t be happen
running program without main results into a error
error: ld returned 1 exit status

execution start from main()
every program in c++ starts from main and end at main()

return 0 ; is a return statement
which is same as any other function’s return
it returns zero because return type of main is int means it can return integer values only

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask