C Programming Tutorial – 67: The gets() and puts() Functions

In this tutorial we will see how we can use the gets() function to receive strings as input and how we can use puts() to display strings on the screen.

Thanks for watching!


Gudu Kasa says:

He is is using code blcok. You can download code block

Kaimura 92 says:

Why can’t I just use printf and scanf as usual? Why were these things (puts, gets) introduced?

Gudu Kasa says:

int main()
 char str[35];
 printf(“Enter a string:”);
 printf(“The string entered is:”);

return 0;

Here you go to check how it works

Corneel117 says:

Programmers which is not from India is scares :)

Wahid Hamidy says:

I appreciate that man!

HoshiAMVs says:

Well what if i want to get a users input? How would I fix char [35] so that i can input more than 35 bytes?

Satyadhar Joshi says:


Pranav Desai says:

Lets say I want to get the user input, how could I possibly store for than 35 bytes?

sachin adhikari says:

Thanks bro!!

Rand Almusfi says:

informative, short and on point. Can’t ask for more Thankss !

Pequod Senpai says:

Which program are you using for this?

Maximatron 115 says:

ur gently need help
whats does [ ] mean and if i put [1] it still works why???

xXVerrySimpalXx says:

This is great bro, thanks :) 

Mohamed Hijas Junaideen says:

bro explain the code a bit more rather than just saying what you did or reading out the code on the screen.

Shubham Singhal says:


munny kumar says:


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▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ 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▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ 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