0

What is difference between int main and void main in c language

25th Dec 2019, 4:31 PM
S.Obul Naidu
S.Obul Naidu - avatar
3 Answers
+ 4
Please try to search the forum first before posting a question. This subject had been discussed before 👍
25th Dec 2019, 4:37 PM
Ipang
+ 3
A function declared as void should not return any value. A function declared as int should return an integer value.
25th Dec 2019, 6:29 PM
Seb TheS
Seb TheS - avatar
+ 2
void main used only in devices without operating system. Any OS requires that in the end program returning status .
25th Dec 2019, 8:15 PM
id001x
id001x - avatar