+ 6

Why is the cpp programs now all starting with int main and not void main??

Return type of main function

8th Feb 2018, 12:05 PM
Jayasoorya Jithendra
Jayasoorya Jithendra - avatar
7 ответов
+ 9
It was set as a standard in c++98 (1998)
8th Feb 2018, 12:10 PM
jay
jay - avatar
8th Feb 2018, 1:00 PM
Hatsy Rei
Hatsy Rei - avatar
+ 5
but who uses turbo now.
8th Feb 2018, 12:28 PM
shobhit
shobhit - avatar
+ 5
Using turbo cpp's blue IDE makes me feel like a professional programmer.. Even if I'm just doing the sum of two numbers..
13th Feb 2018, 11:31 AM
Vishnu NS
Vishnu NS - avatar
+ 4
void main is still used as the main function in turbo C++, and turbo C++, is v. Rarely used.
8th Feb 2018, 12:25 PM
Varun Virupaksha
Varun Virupaksha - avatar