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

preview_player
Показать описание
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!
Рекомендации по теме
Комментарии
Автор

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

sirstyle
Автор

Awesome man.
Simple and effective.
Best for learning.
I am going to use this channel to learn the C.
Thanks.

KamalKumar-iukk
Автор

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

invisibleimpostor
Автор

Note because I don't think they mentioned it: gets() is deprecated due to being extremely unsafe!!! gets_s() or fgets() can achieve the same effect

NoodleBerry
Автор

Why did the scanf command ("% d \ n") not have the command drift, when using gets
#include<stdio.h>
int main(){
char a[10], b[20];
scanf("%s\n", a);
gets(b);
printf("%s, %s", a, b);
}
Thank you.

chungfup
Автор

How many lectures are there in the C Programming Tutorial series? Is it 79 or 84?

FazlulHuq
Автор

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?

HoshiAmvs
Автор

#include <stdio.h>
int main()
{
 char str[35];
 printf("Enter a string:");
 gets(str);
 printf("The string entered is:");
puts(str);

return 0;
}

Here you go to check how it works

gudukasa
Автор

Can we use gets function to extract intezers value too ??

satisadhikari
Автор

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

kaimura
Автор

My program keeps saying that these functions are "deprecated" and doesn't let me use them.

wut

Peter_
Автор

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

gudukasa
Автор

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

maximatron
Автор

Programmers which is not from India is scares :)

Corneel
Автор

I recognize your channel name is called The Bad Tutorials, but please make sure your viewers are aware that following this tutorial will actually cause them to become worse programmers. The harm that is introduced to a program from simply using even one instance of the gets function cannot be understated. Based on some of the posts in the comments section, it is quite possible that some people have interpreted this video as a legitimate tutorial.

KiranasOfRizon
Автор

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

mohamedhijasjunaideen
Автор

You called your channel "The Bad Tutorials" for a reason; the gets function is inherently unsafe.

questionmarc
Автор

I'm dying and I don't understand programming

yuhryfe
Автор

O bhai urdu main bol lay Teri barri meharbani

muhammadshan