Developer community
0 votes
asked by | 65 views

1 Answer

0 votes
Best answer
int main()

main() must return int. Not void, not bool, not float. int. Just int, nothing but int, only int.

Some compilers accept void main(), but that is non-standard and shouldn't be used. Instead use int main().
answered by Sr Member (3.6k points) 1 2 8

Related questions

0 votes
1 answer
asked by arnav Sr Member (1.3k points) 9 21 28 | 379 views
0 votes
1 answer
asked by albertina Geek (15.7k points) 5 9 21 | 85 views
0 votes
2 answers
+1 vote
1 answer
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers


10.7k users

3,751 questions
4,046 answers
10,709 users