C_63 Strings in C-part 2 | Read a String using scanf and gets function
Vložit
- čas přidán 27. 08. 2024
- 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/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
Telegram Group Link: Jenny's Lectures
telegram.me/je...
*******************************************
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 CZcams 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
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.
omaagodd ,Your smiling face 😊and great way of teaching ☺️🤩
Really that smile in man's face is really 😍🥰
String is not a data type in C
But string is a data type in C++
yes
constant string will be in code segment (compile time)
modificable string will be in stack (runtime)
11:39 best moment of lecture
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 ....
Int main()
{
char name[20];
printf("your name please") ;
gets(name) ;
Printf("hi :") ;
puts(name) ;
}
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.
String is not a data type.
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🇳🇵
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
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
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.
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.
*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
String is not a data type in c.It is 1 D array of character.
No string is not a datatype it is used in header files #include
❣
I was also teaching students on coaching ❤👍but your presentation is more student friendly mam
I have subscribed your channel and I used to come to see your daily vedios as your smile and beauty is superb and lovingly❤💖💖💖💖
😂😂
Ma'am , straight to the point
99% come to see you nd 1% come to learn
But the thing is everyone at the end of the day
Ur classes make us learn more nd more , u r lectures , topics u teach nd everything is super
I only wonder in how we started learning soo muchfrm u r class though it is not our purpose
Thank u soo much for the valuable classes nd u can ask every btech student who got backlog in c , nd placement Preparation playlist is dope
Really
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
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.
Mam your smile literally made me fall in love with you ❤❤❤.
Love and support from Nepal 🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵🇳🇵
mam u are such an inspiring personality
Good evening mam, strings are not a data type in c.
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.
thank u soo much mam lots of love and respect from ladakh..😊🤗
string is not a datatype in c but it is a character array which ends with \0
No
String is not data type, String is constant of character and enclosed character in double quotes
very good understanding seeing your videos more helpful
string is not a data type in c but we can represent it with "char" data type is "%s".
Very nice your explanation is 👌👌👌Thanks 😊
No,string is not a datatype. But it is a character set of array
Stings are not datatypes they are array of characters and we explicitly declare it as char
No strings are not data types. It is array which is terminated by null character
String is not a data type..but we can represent it as a character array.
It is not a data type ,it will only take the character values
Mam there is no data type for string. There is just a format specifier %s to print string
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.
string is not a data type. but it is a sequence of character terminated with null character.
No there is not such datatype called string in C so we use array of characters to represent it as a string.
NO String is not datatype but it is array of characters
When you say right word on that time my heart was melting
No stings is a not a data type in C. It is a array of characters.
you are superb mam
In c programming a string is not considered as a datatype but an array of characters (char)
we can use scanf( "%[^
]s" , name) it will fetch till new line character.
no string is an array of character in c and terminated by the null character.
In C , string is a character of array but not a data type
your class is perfect. also your smile keep it your smail
Mam you bring smile to our face
You are a great teacher ❤️❤️❤️ with great smile on your face 😁😁
Your teaching style is almostly differ from others
😘😘😘😘
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
Mam you are the best programming teacher mam , love you mam❤❤❤
Your voice 🌹,smile 🌹 &teaching 🌹
I'm ur fan 💖
String is not a datatyoe it is an array of character
U r super maam u r explaining like wow.....
string is not a data type in c lang. it is an array of character in c
strings are collection of character, it is not a data type in C program.
string is not a datatype in C. It is the character array in C
Dii thanku for your lectures and I really really adore you for that. Thanku Di.😄💯
mam, i am from Bangladesh.you are best teacher in youtube.
String is not a data types in c language but string is the character array
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 🤭
String is not date type it is the array of character..
String is not a data type it is character type.
string is an array of characters not a data type
I hope you are my teacher in 2003 boring classes of Engg college...
No,string is not a data type in c.but it gives array of character.
String is not a data type mam
It is a character array
I fall love with c mam💕💕
No strings are not data types because "string":array of characters 😊😊
String is not a data type in c bt we can represent character array in c...
String is not a data type in c programming
It is a collection of characters
just want to say "you are the best "
Srikar diploma in ec is also watching your videos!
No strings are not datatype in C , it is a 1D array chracters.
NO, string is not a seprate datatype in C but it used as character datatype in C
no ,string is array of characters in c ,it always ends with null character.
Practiced all these commands before watching the video and ruined turbo c++
Now it shows negative colour and blinks like tuni bulbs.finally reinstalled it.
string is not a datatype in C. Just an array of the datetype char
Stirng is a not data type it is a array of characters
string is not a data types they are array of charactor
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.
aapke lecture me apnapan feel hota he
no string is not a data type but mostly equal to character array.
Oficially, string is not a data type but we can make it data type by using "typedef".
but it is in another way bro
Thank you so much ma'am
👍👍👍🙏🙏🙏
String is not data type it is charactor array in c
no, it will not allow to type beyond size in scanf & gets
Good evening mam and mam you are best mentor and you are a actor 🤗 very quit quit moments. In everytime. 🤗
String is not a data type in c but it is array character in c language.
500k loading 😍😍
string is not a data type,it is a character array in C.
No strings are not data types