Lesson 3 of 23
scanf() மூலம் Input
8 min 20 XP
scanf() user-இடமிருந்து மதிப்புகளைப் படிக்கும். Variable பெயருக்கு முன் & (address) போட வேண்டும், இதனால் scanf அந்த variable-ல் மதிப்பை எழுத முடியும். double படிக்க %lf பயன்படுத்துங்கள்.
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.String (char array) படிக்கும்போது & தேவையில்லை, ஏனெனில் array பெயரே ஒரு address. %s ஒரு சொல்லை மட்டுமே (space வரை) படிக்கும்.