C Programming Tutorial-6: Receive Input from Users Using scanf()

In this tutorial we’ll learn to accept input from users in C programs. Just as we use the printf() function to display content on the screen (the default output device), we use the scanf() function to receive input through the keyboard (the default input device).

Thank you for watching!


Shreyansh gokhru says:

hai this code is not working can you help why..
char a,b;
printf(“enter the characters”);
scanf(“%c%c”, &a, &b);

if i put a space between “%c %c” it worked why is it so ?


Tks bud !

Omer Ayad says:

i want arbic cc

Nik Sankovich says:

really great tutorial. clear and concise;thanks!

HikikomoriGamer says:

pure genius! Thanks!

sowmya ug says:

your tutorials were awesome so its my humble request is to please add c++ and Java tutorials so that I and other people can learn from you and thank u for all u r tutotials

AllenWalkerKC says:

Man you’re boss. I am gonna take Programming in the summer and this is helping a lot. Btw, love your accent bro hehe. Peace and subscribed

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours