My school always taught to write void main()
in C and C++. This is after my high school I found out through this community that you don't write void main()
in C++ and C. Does anyone have any idea why schools taught us like that coz honestly now I'm used to writing void main
.....
(India)
We always used Turbo C++ and it was working fine but when I started to use Visual C++, I got to know this.