What is the difference between int main( ) and void main( ) in c programming ?

preview_player
Показать описание
Here, int main ( ) is nothing but a program's function syntax used in almost every programing language which says that function should return a integer type of data and will not talk any parameter when it will be revoked and in other hand void main says that it won't have any return statement and also it won't take any parameter when it will be revoked.
Рекомендации по теме
Комментарии
Автор

This is something I find useful in your whole contribution till now.can you spend some more time to share things like this by matching the same standard in content 😊

loremipsum
Автор

best explanation so far about main and return

mgkxyz
Автор

Thank you so much!!! You saved my life right now!

Im from Brazil 🇧🇷

tecstudios_oficial
Автор

Thank you so much sir now my doubt will be cleared

sinchanasinchana
Автор

Thank you so much man. I couldn't find an answer but I get it now!

frieduchiha
Автор

Thank you so much for your explanation.❤

qxtnp
Автор

Good explanation sir
Thnq so much sir 👍👍

kartiakjangra
Автор

When we typer the void or int printhello is cames as out put then what is the different

kanukantishruthi
Автор

its not clear, please give easy example to understand.

SKashyap
Автор

so there is no need to use void main then

vickyvignesh
Автор

But sr mery program mai void main k function mai error show ho rha ha😫

aminaaslam