Difference between int main and void main in c || c tutorial in Hindi

Опубликовано: 31 Март 2026
на канале: Programming Funda
19,610
411

Difference between int main and void main in c || what is void main || what is int main || c tutorial

Here I have discussed the concept of operating system calling main function and notify about error during run time. Void main is a concept used by older standard and followed by older compiler. Recent compiler and standard suggests to use int main with a return value and hence operating system gets notified about the run time error if any. Return zero is to signify the successful completion of c program. In the end I have discussed shown both ways supported by few compiles.

~-~~-~~~-~~-~
Please watch: "difference between microprocessor and microcontroller in hindi | Microprocessor vs Microcontroller"
   • difference between microprocessor and micr...  
~-~~-~~~-~~-~