Lesson 3 of 23
scanf() తో Input చదవడం
8 min 20 XP
scanf() యూజర్ నుండి values చదువుతుంది. scanf దానిలో రాయగలిగేలా variable పేరుకు ముందు & (address-of) పెట్టండి. 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 వరకు చదువుతుంది.