0

Whats the difference between void main() and int main()?

c++
10th Jul 2016, 7:39 AM
sourav h
sourav h - avatar
1 Answer
+ 1
void means function does not return anything while int is a return type
10th Jul 2016, 4:38 PM
Sunusi Muhammad Raji
Sunusi Muhammad Raji - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Credit card valudator
2 Votes
How i print not duplicate data
1 Votes
Info on the recent lives feature updates?
5 Votes
Code Coach
1 Votes
It keeps throwing errors, I can't seem to understand the problem.
2 Votes
how do i ask multiple questions in python?
3 Votes
How to use css?
1 Votes
Can someone help me with this?
1 Votes
players = ["Alice", "Bob", "Charlie", "David", "Eve", "Frank"] #Create 3 lists with 2 players each #Use slicing to create a lis
3 Votes
Where did my question go from the discussion?
2 Votes
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn Mobile
Made with
by  Sololearn | ©2023