Lesson 14 of 23
Functions
10 min 25 XP
Function ஒரு பெயர் கொண்ட code தொகுப்பு. return type, பெயர், parameters. main()-க்கு கீழே function எழுதினால் மேலே ஒரு prototype (அறிவிப்பு) வேண்டும்.
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.C-ல் arguments மதிப்பாக (call by value) அனுப்பப்படும்: function உள்ளே parameter-ஐ மாற்றினால் main-ல் உள்ள variable மாறாது. மாற்ற வேண்டுமெனில் pointers தேவை (அடுத்த module).
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.