C_63 Strings in C-part 2 | Read a String using scanf and gets function
Вставка
- Опубліковано 26 лип 2021
- In this lecture we will discuss:
- How to read a String using scanf and gets function?
Best C Programming Tutorials: • Programming in C
*********************************************
Connect & Contact Me:
Jenny's Lecture Hindi: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
Telegram Group Link: Jenny's Lectures
telegram.me/jennyslectures
*******************************************
More Playlists:
Programming in C Tutorials: • Programming in C
C++ Tutorials for beginners: • Lec 1: How to Install ...
Printing Pattern in C: • Printing Pattern Progr...
Best Python Tutorials for Beginners: • Python - Basic to Advance
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Dynamic Programming: • Dynamic Programming
Operating Systems tutorials: // • Operating Systems
DBMS Tutorials: • DBMS (Database Managem...
Tags:
strings, string in c, what is string, c programming tutorials, c programming, best c programming tutorials
#coding #strings #jennyslectures #cprogramming #clanguage
string is not a data type in c but it is array of character in c and format specifier for string is %s.
I'm very fortunate i found your UA-cam channel. You're a very scholar, talented woman. You tells so many good things to be a programmer. While you're a programmer, it's my dream to become one and your channel is a blessings for me.
I want to develop logic skill.
when you're teaching one good thing is your face is smiley it makes us happy. and felt like that nothing is impossible in life. Thank You So Much.
Strings are not data type they are arrays of characters.
Yes char type array it is🙂
It is derived data type
Yes character array is also called as strings in(c)
@@geethalatha4187 hai
Hi
constant string will be in code segment (compile time)
modificable string will be in stack (runtime)
The C language doe
s not provide an inbuilt data type for strings but it has an access specifier “%s” which can be used to directly print and read strings. You can see in the above program that string can also be read using a single scanf statement.
Bro pls help......
Why we are not writing scanf("%s",&name)????
Instead of scanf("%s",name)
But in other programs we use &name
Why we are not writing address of ....
@@itz__ahana_ because string is a internal pointer which is pointing to base address of zerothindex of array
@@prithwihegde349but bhai array mai jo array name hota hai bo bhi to internal pointer hota hai uske pass bhi base address hota hai usme to use krna pdta hai &operator why?
No, string is not consider as a data type in C but it represents as a character array in C.
I was also teaching students on coaching ❤👍but your presentation is more student friendly mam
string is a character array, which is a known for a sequence of multiple characters ended by a special character null (\0) and its format specifier is %s
string is not a datatype in c but it is considered as an array of characters.
It is a specific type of array whose datatype is always char.
11 : 40 That Smile Kill Me Alredy And Now I Am Waiting For Anthor Smile 😊
Your English is very clear to understand
Thank you for your wonderful explanation
Mam you don't have to be uncomfortable in telling that your channel is the best channel.ofcourse your channel is the best channel..lots of love from Nepali students mam🇳🇵
Int main()
{
char name[20];
printf("your name please") ;
gets(name) ;
Printf("hi :") ;
puts(name) ;
}
String is not a data type in C
But string is a data type in C++
yes
Hello Madam I have a question; In vscode how do I set the cursor to move down to the terminal each time I tap the enter button and I need to input some values especially when using scanf or gets. I find it cumbersome to have to move the cursor down manually all the time.
problem: both fgets and puts add a line-break after the input, so that you cannot output the %s in a continuous line of text. that only works with gets, but gets has the buffer problem.
omaagodd ,Your smiling face 😊and great way of teaching ☺️🤩
Really that smile in man's face is really 😍🥰
very good understanding seeing your videos more helpful
String is not data type, String is constant of character and enclosed character in double quotes
I have subscribed your channel and I used to come to see your daily vedios as your smile and beauty is superb and lovingly❤💖💖💖💖
When you say right word on that time my heart was melting
11:39 best moment of lecture
I am having one doubt.. miss you gave a solution of buffer overflow that we can write scanf("%4S",name) is this applicable for gets () function also ?? Pls anyone reply
mam u are such an inspiring personality
just want to say "you are the best "
Dii thanku for your lectures and I really really adore you for that. Thanku Di.😄💯
Very nice your explanation is 👌👌👌Thanks 😊
your class is perfect. also your smile keep it your smail
No, string is not a specific datatype in c like int , float , char , but string can be defined as a character array in c.
Bro pls help......
Why we are not writing scanf("%s",&name)????
Instead of scanf("%s",name)
But in other programs we use &name
Why we are not writing address of ....
Your voice 🌹,smile 🌹 &teaching 🌹
I'm ur fan 💖
If you want to enter strings with spaces you can use "%[^
]" this format specifier instead of %s. It will allow you to enter strings with white spaces as input. Please inform me if I am wrong 🤔.
Verily, thou art righteth.
Best lecture no confusion ❤️❤️
Thank you so much ma'am
👍👍👍🙏🙏🙏
thank u soo much mam lots of love and respect from ladakh..😊🤗
Mam I love your teaching
aapke lecture me apnapan feel hota he
String is not a data type in c.It is 1 D array of character.
Mam I was learning c from any other creator but I switched to your lectures as those lectures was not explained in detail,
Btw loving your way of teaching.
Mam there is no data type for string. There is just a format specifier %s to print string
In c programming a string is not considered as a datatype but an array of characters (char)
mam, i am from Bangladesh.you are best teacher in youtube.
Hi mam thank you for telling these class and your class are most useful for diploma 1st year students in Telangana and small request mam try to explain in telugu.
Good evening mam and mam you are best mentor and you are a actor 🤗 very quit quit moments. In everytime. 🤗
Thanks for your efforts mam
U r super maam u r explaining like wow.....
Excepting a heart from you mam
Anyway thank you for your efforts
Thank you...
I fall love with c mam💕💕
i was given a string size 5...and entered more than five characters at runtime by using scanf...but the output showing ,it was terminated????whats the reason?
*FOR STRINGS WE SHOULD USE FOR LOOP TO AVOID THE BUFFER OVERFLOW* - initializing the array directly using scanf or gets is not a standard rule and are not for using with strings but only with characters using for loops
I am completed my 12 , when I search theorem of class 9 of my brother so I am find your vedio , and I am addicted your vedio 🤭
If I initialize a string of size 10 and try to find the 25th character in this string it is not showing any error why?
Mam your smile literally made me fall in love with you ❤❤❤.
Love and support from Nepal 🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵
string is not a datatype in c but it is a character array which ends with \0
No
Mam you are the best programming teacher mam , love you mam❤❤❤
Mam...we can print entire string along with space using scanf......please use this format...
Scanf("%[^
]s",str);
This statement reads the input until newline occurs....
if we go like same as gets.
you are superb mam
we can use scanf( "%[^
]s" , name) it will fetch till new line character.
Mam please make a separate video on scanf ,gets,fgets !
But mam I'm using gets(name) but it's not taking my full name with space (vadthiya Santhosh naik) . It's output is just Vadthiya Santhosh... How can i solve this..?
Thank you
Iam your new subscriber ma'am... :)
500k loading 😍😍
Mam, Why don't you finish OS lectures?
Please take a look on it.
Mam please upload the lecture of c++ and java also
I fall love with c language 🥰😂❤
No string is not a datatype it is used in header files #include
❣
No strings are not data types. It is array which is terminated by null character
No there is not such datatype called string in C so we use array of characters to represent it as a string.
Stings are not datatypes they are array of characters and we explicitly declare it as char
Good evening mam, strings are not a data type in c.
It is not a data type ,it will only take the character values
Smile is Ultra pro max
madam your teaching is good
Tq mam
Thank you mam
It says segmentation fault when I try to buffer overflow!
mam in online GDB compiler gets function is giving error.. I'm unable to use gets but in other compiler it is working
string is not a datatype in C. It is the character array in C
String is one of the derived data type
String is not a data type it is character type.
String is not a data type, it represents character array
No,string is not a datatype. But it is a character set of array
Madam it'll helpful if you teach finite automata theory and machine learning
Srikar diploma in ec is also watching your videos!
Mam how to overcome the problem of buffer overflow??
String is an array of characters in C but it is not an explicit datatype unlike in Java and other programming languages etc.
String is a class in java, not primitive data type
@@nileshbhaskar9010 It is a Class Type and not Wrapper as it does not have a parallel primitive type.
@@shivendra3019 no it's not
I hope you are my teacher in 2003 boring classes of Engg college...
Strings are arrays of characters but not data types
kindly make C++ lectures series thanks
is there no need of & operator in scanf??
String is not a datatype it is a constant of character
string is not a data type in c but we can represent it with "char" data type is "%s".
Mam ap ki muskurahat bhut payari h
❤❤❤❤
No strings are not data types because "string":array of characters 😊😊
madam what happen when we include null charctor as a part of string
String is not a data type we can considered string as the character arrays or it is an array of characters which is ended with the null character ('\0')..
But the format specifier which is used to print the whole string is %s
NO, string is not a seprate datatype in C but it used as character datatype in C
No stings is a not a data type in C. It is a array of characters.