Can someone explain the connection between the code in void() and int main()? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone explain the connection between the code in void() and int main()?

7th Jul 2016, 5:16 PM
eng.M
1 Answer
+ 1
void is not a function. It is a keyword to tell the datatype where no value is avilable. int main() indicates the return type is integer. whereas void main() indicates, function doesn't return any value.
14th Jul 2016, 3:25 PM
B. K.