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()

ความคิดเห็น • 122

  • @knvssandeepbolisetti5008
    @knvssandeepbolisetti5008 3 ปีที่แล้ว +8

    super session !!!!!
    didn't missed a single concept from textbook
    infact he explained beyond the textbook

  • @Sandhyajamakhandi
    @Sandhyajamakhandi ปีที่แล้ว +1

    No words to explain how easily you solved my confusion.
    Thanks a lot sir.

  • @sumabaswani1179
    @sumabaswani1179 6 ปีที่แล้ว +24

    sir please make a video on string reverse and concatenation without using library function .because your videos are easily understandable

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +4

      hi suma
      soon i will upload them and sorry for delay.

  • @deepakgarg2547
    @deepakgarg2547 2 ปีที่แล้ว +1

    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

  • @vamsipamulapati5457
    @vamsipamulapati5457 3 ปีที่แล้ว +3

    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.

  • @darshanvk7174
    @darshanvk7174 5 ปีที่แล้ว +6

    From the video...all doubts cleared...
    Thanks sir......

  • @benozachariah7524
    @benozachariah7524 6 ปีที่แล้ว +2

    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.....

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      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.

  • @nehaverma-og4ge
    @nehaverma-og4ge 6 ปีที่แล้ว +4

    i feel very nice after getting your class. every doubt is cleared.thanks a lot to u.very much thanks.

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi neha
      thanks for watching ans suport towards our channel.keep supporting our channel.

  • @sarithajagarapu4728
    @sarithajagarapu4728 5 ปีที่แล้ว +3

    Nice explanation sir .....it will be useful to me..... thanku sir

  • @adityabhandare4981
    @adityabhandare4981 2 ปีที่แล้ว +2

    Very neatly explained !! 👍

  • @thavitikirajasekhar5740
    @thavitikirajasekhar5740 5 ปีที่แล้ว +3

    Sir I think u should also explain a complex example in your videos ...
    How ever u teach the concepts well...

  • @nakulagarwal6268
    @nakulagarwal6268 5 ปีที่แล้ว +1

    your way of explanation is so simple

  • @hulk6805
    @hulk6805 2 ปีที่แล้ว +1

    Thank you sooo much sir......
    Your teaching is very understandable.....

  • @jotdeepkaur4257
    @jotdeepkaur4257 5 ปีที่แล้ว +1

    Osssssuuuummmm sir osssssuuuummmm u r really osssssuuuummmm 🥳🥳🥳🥳

  • @localboyentry6892
    @localboyentry6892 5 ปีที่แล้ว +2

    Really useful to me sir . Thank u for teaching for us.

  • @gayathrig5876
    @gayathrig5876 6 ปีที่แล้ว +10

    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

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi gayatri
      thanks for watching my sessions and interest towards our channel.keep following our channel.

    • @sarithajagarapu4728
      @sarithajagarapu4728 5 ปีที่แล้ว

      Like

    • @srilathadasupuram7218
      @srilathadasupuram7218 5 ปีที่แล้ว +1

      @@sundeepsaradhi tq sir your explain super

  • @nazerup2814
    @nazerup2814 5 ปีที่แล้ว +2

    Sir , tnx for your class.your class like a simple language .tnx for you

  • @FilipEskic99
    @FilipEskic99 5 ปีที่แล้ว +2

    Just an information, at 34:35, there should say putchar(name[i]); otherwise, it will print something that is not our string.

  • @manjunathsdvg
    @manjunathsdvg 4 ปีที่แล้ว

    Dear sir, your explanation is very good and easy to understand .

  • @srijadgp6445
    @srijadgp6445 4 ปีที่แล้ว +1

    How to read the data after the
    or how to read the data after we press enter key

  • @IndianFoodsnmore
    @IndianFoodsnmore 5 ปีที่แล้ว +1

    Please make video on Pattern printing,bcoz your videos are easily understandable. Please sir..

  • @vikasvikki2226
    @vikasvikki2226 5 ปีที่แล้ว +2

    Sir you are using ',' b/w while initialising the character.....but even ',' also the character right it will also be initialised

  • @-Akashreddy
    @-Akashreddy 5 ปีที่แล้ว +1

    Excellent teaching

  • @LinguistAna
    @LinguistAna 6 ปีที่แล้ว +6

    Thanks for this video it is very helpful . I was wondering in the future would you be willing to do a lesson on pointers .

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      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.

  • @supentamu3073
    @supentamu3073 5 ปีที่แล้ว +3

    Wonderful explanation . Thank you so much

  • @hitesha5426
    @hitesha5426 6 ปีที่แล้ว +3

    Thanks a lot sir its definitely helping me to study for exams

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      hi
      thanks for your interest and support towards our channel. keep on following my sessions.

  • @seshumadhavi5861
    @seshumadhavi5861 2 ปีที่แล้ว

    Sir excellent for basics 👌

  • @chethanspoojary
    @chethanspoojary 5 ปีที่แล้ว +1

    I love ur teaching

  • @musriefsantosh1872
    @musriefsantosh1872 3 ปีที่แล้ว

    Fantastic explaination sir good hour to vist at u..

  • @dragonbooster5618
    @dragonbooster5618 5 ปีที่แล้ว +1

    Sir, thank you so much for these videos..god bless you..

  • @jashwanthbablu856
    @jashwanthbablu856 ปีที่แล้ว

    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

  • @dannyustar8287
    @dannyustar8287 5 ปีที่แล้ว +1

    thanks for your explanations !!!!!!!!!!!!!!

  • @Krishnaveni-02
    @Krishnaveni-02 2 ปีที่แล้ว +1

    Sir plz explain codethantra programs on this topic

  • @lamo440
    @lamo440 5 ปีที่แล้ว

    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

  • @manojkiran2997
    @manojkiran2997 6 ปีที่แล้ว +2

    Thank you very much sir.Clearly understood.

    • @sundeepsaradhi
      @sundeepsaradhi  5 ปีที่แล้ว

      Hi
      Thanks for your support and interest towards our channel and share our channel with your friends. Keep following our channel.

  • @khanapeena2191
    @khanapeena2191 4 ปีที่แล้ว

    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

  • @phanimanojoleti6606
    @phanimanojoleti6606 2 ปีที่แล้ว

    Sir we did not use scanf function in last example

  • @chakshusharma6585
    @chakshusharma6585 4 ปีที่แล้ว

    Sir ye aapne last m jo example diya hai usme last m getch; kyu use kiya ?

  • @ramunaidu1665
    @ramunaidu1665 4 ปีที่แล้ว +1

    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

  • @sagarsk5893
    @sagarsk5893 6 ปีที่แล้ว +3

    Sir in string scanf function y we didn't written ampersand {&}

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +3

      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.

    • @travellertalks3447
      @travellertalks3447 6 ปีที่แล้ว

      @@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????

    • @moustafadarwish3674
      @moustafadarwish3674 5 ปีที่แล้ว

      because its an array

  • @mbabu3649
    @mbabu3649 4 ปีที่แล้ว +1

    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.

    • @sundeepsaradhi
      @sundeepsaradhi  4 ปีที่แล้ว

      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.

  • @bhukyavinod9128
    @bhukyavinod9128 3 ปีที่แล้ว

    Wonderful✨😍 video sir.. Tq so much🥰🥰

  • @veenawithk
    @veenawithk 6 ปีที่แล้ว +1

    Thkq so much sir ..your videos are really help for me.

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      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.

  • @shrawanthakur3
    @shrawanthakur3 5 ปีที่แล้ว +1

    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

    • @hargunsingh8800
      @hargunsingh8800 5 ปีที่แล้ว

      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

  • @klaranagy6458
    @klaranagy6458 6 ปีที่แล้ว +1

    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

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      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.

  • @chandugeeshi7695
    @chandugeeshi7695 2 ปีที่แล้ว

    Supper teaching sir

  • @gayathrig5876
    @gayathrig5876 6 ปีที่แล้ว +2

    Tq Sir.. It's useful.. And How to use 2 dimensional string array

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi gayatri
      thanks for watching my sessions and interest towards our channel. soon i will try to upload the video regarding that.

  • @keerthivasang1178
    @keerthivasang1178 6 ปีที่แล้ว +1

    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.

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      hi keerthivasan
      that is related to webservice and soon i will start uploading the concepts of web technology.

  • @vineethreddy7874
    @vineethreddy7874 5 ปีที่แล้ว

    how do we know by seeing program is it is a string or array to keep %s or other

  • @eslavathprashantheslavathp2136
    @eslavathprashantheslavathp2136 3 ปีที่แล้ว

    Is it necessary to learn c to learn data stracture sir

  • @Farahat1234
    @Farahat1234 6 ปีที่แล้ว +1

    Sir what is difference in writing
    and \0. Are they same or different?

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว +1

      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.

  • @Farahat1234
    @Farahat1234 6 ปีที่แล้ว +1

    Thank youuu soooooo muchhhhh sir 😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😍😍😍. God bless you sir😘😘😘😘😘😘😘😘😘😘😘😘

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      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.

  • @prashant1206
    @prashant1206 4 ปีที่แล้ว +1

    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);
    }

  • @sushma7576
    @sushma7576 6 ปีที่แล้ว +1

    Ur explaination is super sir

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi sush
      thanks for your support towards our channel.

  • @shyamprakash6762
    @shyamprakash6762 3 ปีที่แล้ว

    sir i want logic for the write any code in C programming

  • @prernaprerna2941
    @prernaprerna2941 4 ปีที่แล้ว +1

    Good evening sir difference between /0 and /n

    • @gouripriya1899
      @gouripriya1899 3 ปีที่แล้ว

      /0 is null character
      /n is new line character

  • @srikanthmahesh7526
    @srikanthmahesh7526 6 ปีที่แล้ว +1

    Sir In Which Case Scanf Statement Used and also Else Statement

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      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.

  • @arnabgoswami5930
    @arnabgoswami5930 5 ปีที่แล้ว

    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

  • @preethigowda7870
    @preethigowda7870 5 ปีที่แล้ว

    How to print only the middle character of a name

  • @sumandarkudaravalli8753
    @sumandarkudaravalli8753 4 ปีที่แล้ว +1

    sir can we consider '\0' as also one element

  • @sandeepmsv3226
    @sandeepmsv3226 4 ปีที่แล้ว

    What is the difference between while loop and for loop explained in detailed

    • @sumanareddy3786
      @sumanareddy3786 11 หลายเดือนก่อน

      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.

  • @keerthivasang1178
    @keerthivasang1178 6 ปีที่แล้ว +2

    Nice sir!! But How to read graphical character??

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi keerthivasan
      by using raster scan display we can read any characters.

  • @beastboysagar8193
    @beastboysagar8193 5 ปีที่แล้ว +1

    Sir,can I use a character variable in putchar as like in getchar?

  • @sankarreddy5189
    @sankarreddy5189 2 ปีที่แล้ว

    Thank you sir

  • @kambalasrinivasarao259
    @kambalasrinivasarao259 6 ปีที่แล้ว

    Thank you sir. Now i can present my seminar.

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi srinivas
      thanks for watching my sessions and All the very best for your seminar.

  • @patandardoraemon7611
    @patandardoraemon7611 5 ปีที่แล้ว +1

    Thank you sir for helpinh

  • @vijaykumarkarnan5223
    @vijaykumarkarnan5223 6 ปีที่แล้ว

    thank you sir. it was so useful for me. can u please update the preprocessor topic video..........

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi vijay kumar
      thanks for your support towards our channel.

  • @pradipmalla8059
    @pradipmalla8059 3 ปีที่แล้ว

    thankyou sir

  • @amarjeetbhatia6508
    @amarjeetbhatia6508 4 ปีที่แล้ว

    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

    • @suryapadala54
      @suryapadala54 4 ปีที่แล้ว

      It is new line character and null character

    • @sirikisrinivasarao7994
      @sirikisrinivasarao7994 3 ปีที่แล้ว


      is escape sequence for new line and \0 is for null character.

  • @iskandershah4571
    @iskandershah4571 4 ปีที่แล้ว +1

    Sir pls improve sound quality

    • @Ab415h3k
      @Ab415h3k 4 ปีที่แล้ว

      Iskander Shah so its the problem with your mobile speaker volume 🔊

  • @sawanteotia652
    @sawanteotia652 5 ปีที่แล้ว

    Very helpful

  • @bunny-zm2kg
    @bunny-zm2kg 6 ปีที่แล้ว +1

    Sir please make videos on MATLAB

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi anusha
      sorry to say i am not much aware of that MATLAB.

  • @mohanrawat2343
    @mohanrawat2343 5 ปีที่แล้ว

    that is not 0 that o in hello

  • @nimaghasemi7058
    @nimaghasemi7058 5 ปีที่แล้ว

    %s= yes

  • @shaileshkumarshetty4401
    @shaileshkumarshetty4401 6 ปีที่แล้ว +1

    i will give 2 likes tnank u....................................

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      thank you shailesh for your interest towards my sessions.

  • @prajayreddygunnala2826
    @prajayreddygunnala2826 4 ปีที่แล้ว

    I think that many ads r not necessary we r here to gain something from this respective video 🤦🏽‍♂️🤦🏽‍♂️🤦🏽‍♂️

  • @ismartvenkatapur7140
    @ismartvenkatapur7140 11 หลายเดือนก่อน

    Example not undastand

  • @bestevergamers9550
    @bestevergamers9550 4 ปีที่แล้ว +1

    please use hindi

  • @whiteff5394
    @whiteff5394 ปีที่แล้ว

    Excellent teaching

  • @saeedalremeithi6858
    @saeedalremeithi6858 5 ปีที่แล้ว

    Wonderful explanation . Thank you so much

  • @supersai311
    @supersai311 2 ปีที่แล้ว

    Thanks sir

  • @farhatkhan852
    @farhatkhan852 4 ปีที่แล้ว

    Thanks sir