Computer Science, asked by ishikasoni287, 5 months ago

Q.12 Explain the role of void main().​

Answers

Answered by 1859192981
0

Answer:

The void main() indicates that the main() function will not return any value, but the int main() indicates that the main() can return integer type data. When our program is simple, and it is not going to terminate before reaching the last line of the code, or the code is error free, then we can use the void main()

Answered by babygirll89
4

Answer:

\huge\colorbox{Pink}{Question}

Explain the role of void main

\huge\colorbox{skyblue}{Answer}

 \huge\ ✍\: ........

The void main() indicates that the main() function will not return any value, but the int main() indicates that the main() can return integer type data. When our program is simple, and it is not going to terminate before reaching the last line of the code, or the code is error free, then we can use the void main().

Explanation:

hope it helps you and ❣️

please mark me as brainliest ✌️

Similar questions