c - return type of 'main' is not 'int' -


मैं सी भाषा सीख रहा हूं, ने निम्न कोड लिखा है:

  #include & LT; stdio.h & gt; शून्य मुख्य () {char ch = 'a'; Printf ("% c \ n", ch); }  

फिर मैं कोड को संकलित करने के लिए जीसीसी का उपयोग करता हूं, लेकिन मुझे कोई गलती मिलती है:

  वापसी प्रकार 'मुख्य' नहीं है 'int' [-  

मैंने किसी भी डेटा प्रकार int का उपयोग नहीं किया, गलत क्या है?

मुख्य int मुख्य (शून्य) {वापसी 0; }

रिटर्न मूल्य कार्यक्रम के निकास कोड है।


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -