Developer community
0 votes
65 views
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

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

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