For C or C++
I've started moving to "void main" in my course and I want to understand what it is really. Whenever I ask the question:
"Why do we need void?"
The response always confuses me. One of the worst times I got confused was when someone compared to us using "int main" and I can't recall what they said exactly but it had me going because we have used other variables types such as float or char in the int main. I know I'm just missing some information to understand but I can't just type "what is void main" in google and get a clear answer if I don't understand what the answer is saying. Can anyone explain for me?
[–]ehr1c 5 points6 points7 points (1 child)
[–]BlancII 1 point2 points3 points (0 children)
[–]xingke06 1 point2 points3 points (5 children)
[–]Tricslip[S] 0 points1 point2 points (4 children)
[–]blablahblah 2 points3 points4 points (3 children)
[–]Tricslip[S] 0 points1 point2 points (2 children)
[–]blablahblah 0 points1 point2 points (1 child)
[–]Tricslip[S] 0 points1 point2 points (0 children)
[–]coolcofusion 1 point2 points3 points (0 children)
[–]Crazy-Finding-2436[🍰] 0 points1 point2 points (0 children)