47 - STRINGS or CHARACTER ARRAYS - C PROGRAMMING
ฝัง
- เผยแพร่เมื่อ 26 ส.ค. 2024
- Strings is a collection of characters.
Strings are implemented using character arrays.
Input Functions to read string
1) scanf()
2) getchar()
3) gets()
Output Functions to print string
1) printf()
2) putchar()
3) puts()
super session !!!!!
didn't missed a single concept from textbook
infact he explained beyond the textbook
No words to explain how easily you solved my confusion.
Thanks a lot sir.
sir please make a video on string reverse and concatenation without using library function .because your videos are easily understandable
hi suma
soon i will upload them and sorry for delay.
Sir you are great ,i was searching this topic from last 1 hour..but their is not a single quality video...then I found this video and really sir you made it easy for me....this video is a masterpiece.....🙏love from delhi
Sir ,try to explain a complete program at the last.because from the programme u can explain a lot.
Ex:-in strings (programmes like reversing a number; sorting of n numbers ,finding the number of vowels etc..) from programs like this u can explain more and explore more.
From the video...all doubts cleared...
Thanks sir......
I feel grateful to you for presenting every detail in the best possible way.I have a suggestion for you to include more string handling programs without using the string handling functions.May God bless you, sir.....
hi beno
thanks for watching my sessions and your interest towards our channel.
if possible make a selfie video having a feedback on our channel and send to my whatsApp number 9885466061. i want to upload all the feedbacks in our channel.
i feel very nice after getting your class. every doubt is cleared.thanks a lot to u.very much thanks.
hi neha
thanks for watching ans suport towards our channel.keep supporting our channel.
Nice explanation sir .....it will be useful to me..... thanku sir
Very neatly explained !! 👍
Sir I think u should also explain a complex example in your videos ...
How ever u teach the concepts well...
your way of explanation is so simple
Thank you sooo much sir......
Your teaching is very understandable.....
Osssssuuuummmm sir osssssuuuummmm u r really osssssuuuummmm 🥳🥳🥳🥳
Really useful to me sir . Thank u for teaching for us.
Your explanation is very nice sir.. It's very useful to me.. Nd I will give 2 likes to ur explanation sir.. Sir can you explain about string taxonomy
hi gayatri
thanks for watching my sessions and interest towards our channel.keep following our channel.
Like
@@sundeepsaradhi tq sir your explain super
Sir , tnx for your class.your class like a simple language .tnx for you
Just an information, at 34:35, there should say putchar(name[i]); otherwise, it will print something that is not our string.
are you sure?
reply
Dear sir, your explanation is very good and easy to understand .
How to read the data after the
or how to read the data after we press enter key
Please make video on Pattern printing,bcoz your videos are easily understandable. Please sir..
Sir you are using ',' b/w while initialising the character.....but even ',' also the character right it will also be initialised
Excellent teaching
Thanks for this video it is very helpful . I was wondering in the future would you be willing to do a lesson on pointers .
hi Anas
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Wonderful explanation . Thank you so much
Thanks a lot sir its definitely helping me to study for exams
hi
thanks for your interest and support towards our channel. keep on following my sessions.
Sir excellent for basics 👌
I love ur teaching
Fantastic explaination sir good hour to vist at u..
Sir, thank you so much for these videos..god bless you..
Sir will you explain all string function's like: Around 22 function's are there in string concept, please sir...🥺🥺🥺🥺🥺
strcpy() - Copies one string to another
strcat() - Concatenates two strings
strlen() - Returns the length of a string
strcmp() - Compares two strings
strncmp() - Compares n characters of two strings
strchr() - Finds the first occurrence of a character in a string
strstr() - Finds the first occurrence of a substring in a string
strtok() - Tokenizes a string into smaller strings based on a specified delimiter
memset() - Sets a block of memory to a specified value
memcpy() - Copies a block of memory from one location to another
memmove() - Copies a block of memory from one location to another, even if the blocks overlap
memcmp() - Compares two blocks of memory
memchr() - Finds the first occurrence of a character in a block of memory
strcpy_s() - A secure version of strcpy()
strcat_s() - A secure version of strcat()
strncpy_s() - A secure version of strncpy()
strncat_s() - A secure version of strncat()
snprintf() - Formats and prints data to a string
sscanf() - Parses data from a string
sprintf() - Formats and prints data to a string
strlwr() - Converts a string to lowercase
strupr() - Converts a string to uppercase
thanks for your explanations !!!!!!!!!!!!!!
Sir plz explain codethantra programs on this topic
Why to use null Character sir.
Already in arrays if declare size as 5 it will create required space for storing in meemory .
as of dat in dis video u have already declared size as6 so it will consider only 6 size for storing 6 particular alphabets so y to use again null cahracter when we declare size of dat array
Thank you very much sir.Clearly understood.
Hi
Thanks for your support and interest towards our channel and share our channel with your friends. Keep following our channel.
I have to ask a question in gatchar( ) function
In while statement we don't mention any insialistion to ch so how will be the statement true
Sir we did not use scanf function in last example
Sir ye aapne last m jo example diya hai usme last m getch; kyu use kiya ?
i don't understand one thing ..that what is the use of that null element '\0', suppose main(){ char name[5]={'h','e','l','l','o'}}..the output will be hello even without initializing 6th element ie.name[6]...i need the answer plz sir ...i had my sem tomorow..plzzz
\0 indicate end of string.
Sir in string scanf function y we didn't written ampersand {&}
HI SAGAR
here string is a group of characters and each character will be having its own address and if we want to read a string using scanf the base address will be assigned and we know character arrays will have contiguous memory locations. so we need not use & in scanf. Hope your doubt has been clarified.
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@@sundeepsaradhi sir we have learnt like character array will store reference id for that location continuously but it may or may not get continuous memory for characters in the storage is that right or wrong????
because its an array
Sir well explained but u r taken size of char array [20] how can u say with inthis limit,at the time runtime, if user taken more than that size will get error here every time we want changes the size instead of taken fixed size better to use n number of size, don't no when the user wants how many characters right, soo plz take the example with out using fixed size.
Hi
That's the disadvantage of arrays
We have to specify the size of array during declaration and if you use the elements out of given range it will not give any error.
Wonderful✨😍 video sir.. Tq so much🥰🥰
Thkq so much sir ..your videos are really help for me.
hi veena
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
Sir first of all, great teaching. I have doubt. How can we use char function in array of structure in a loop. Example: WAP to store name, roll no of 5 students and their percentage in exam in students using loop
according to your problem my opinion is to use the concept of "structure"
with the help of structure we initialize the data and with help of objects we make either an array of objects or simply making objects to access the data. And in this way we simply make above program.
if I'm wrong please correct me.
thank you
Hello! How can i initialize a characher array to be an empyt string ? please help me .I want to use a variable more times during in a program and i have to initialize it to be empty
hi nagy
char string[20]='\0';
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Supper teaching sir
Tq Sir.. It's useful.. And How to use 2 dimensional string array
hi gayatri
thanks for watching my sessions and interest towards our channel. soon i will try to upload the video regarding that.
How to read Tick and False mark in form processing. For example in B.E entrance examination answer paper validating by computers by using some Form processing application.
hi keerthivasan
that is related to webservice and soon i will start uploading the concepts of web technology.
how do we know by seeing program is it is a string or array to keep %s or other
Is it necessary to learn c to learn data stracture sir
Sir what is difference in writing
and \0. Are they same or different?
hi Farahat
is the new line character and
\0 is the null character.
Hope your doubt has been clarified.
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Thank youuu soooooo muchhhhh sir 😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😍😍😍. God bless you sir😘😘😘😘😘😘😘😘😘😘😘😘
hi Farahat
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Good after noon sir ,i have studied whole c programming from your channel,sir iam unable to understand this array they have used small bracket please help me out thanku
main()
{
int x, arr[8]={11,22,33,44,55,66,77,88};
x=(arr+2)[3];
printf(“%d”,x);
}
i also want to know
Ur explaination is super sir
hi sush
thanks for your support towards our channel.
sir i want logic for the write any code in C programming
Good evening sir difference between /0 and /n
/0 is null character
/n is new line character
Sir In Which Case Scanf Statement Used and also Else Statement
hi srikanth
if you want to read single word (without any spaces) then we can use scanf function.It will consider space as end of string .
hope your doubt has been clarified.
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
sir pls upload a program.to check vowel and cosonents in a line and also terminate the string when input character encountered is other than the alphabates in c.pls as soon as posible
How to print only the middle character of a name
sir can we consider '\0' as also one element
Yes
What is the difference between while loop and for loop explained in detailed
for loop is used when we already know the number of iterations in advance, otherwise while loop is quite helpful. There is not much difference between .
while(CONDITION)
{
statements;
incrementation of variables;
}
for(initialization; CONDITION; incrementation of the variables)
{
statements;
}
they are not different, both of them are the same i.e., until the given CONDITION is satisfied, both of them execute the statements provided inside the blocks , and when the CONDITION is not satisfied, the loops would stop iterating.
Nice sir!! But How to read graphical character??
hi keerthivasan
by using raster scan display we can read any characters.
Sir,can I use a character variable in putchar as like in getchar?
Thank you sir
Thank you sir. Now i can present my seminar.
hi srinivas
thanks for watching my sessions and All the very best for your seminar.
Thank you sir for helpinh
thank you sir. it was so useful for me. can u please update the preprocessor topic video..........
hi vijay kumar
thanks for your support towards our channel.
thankyou sir
Hlo sir one doubt what's the difference between /n and/0 please please reply sir
They both means the same that is to terminate the existing string
It is new line character and null character
is escape sequence for new line and \0 is for null character.
Sir pls improve sound quality
Iskander Shah so its the problem with your mobile speaker volume 🔊
Very helpful
Sir please make videos on MATLAB
hi anusha
sorry to say i am not much aware of that MATLAB.
that is not 0 that o in hello
%s= yes
i will give 2 likes tnank u....................................
thank you shailesh for your interest towards my sessions.
I think that many ads r not necessary we r here to gain something from this respective video 🤦🏽♂️🤦🏽♂️🤦🏽♂️
Example not undastand
Sir
please use hindi
Excellent teaching
Wonderful explanation . Thank you so much
Thanks sir
Thanks sir