- 1

Void

what is use of void

c++
26th Jan 2017, 6:00 AM
Clumsy
Clumsy - avatar
1 Answer
+ 1
Void is a datatype that means empty. And is used when u don't want to return a value from a function.
26th Jan 2017, 6:02 AM
Divesh Agarwal
Divesh Agarwal - 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
How i print not duplicate data
1 Votes
It keeps throwing errors, I can't seem to understand the problem.
2 Votes
Streak extension
1 Votes
I need help with this code about template literal on JavaScript.
0 Votes
Several entries in the same variable
0 Votes
how to refill the heart in sololearn ?
1 Votes
Can you please tell me which is the best software to use and to code ( on software ) and it is beginner friendly
0 Votes
How to animate both Box and Sphere?
1 Votes
Idea for sololearn
1 Votes
new course
0 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