C Program to find substring in a string

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 80

  • @susheelvyas
    @susheelvyas 6 лет назад +4

    La jawab sirji, appka algorithm he bilkul sahi hai. Bhout badiyaa. Dhanywaad

  • @justfun7174
    @justfun7174 2 года назад

    Apne Bahut achhe se btaya h sir g …..or m apne har us dost ko channel ke bare me btaunga jo achhe se C sikhna chahta h.
    Thank you sir …

  • @balajiprithviraj5145
    @balajiprithviraj5145 Год назад +1

    Thankyou very much sir, clear explanation 🙏

  • @Codeytek
    @Codeytek 2 года назад +3

    Great explanation! One suggestion, it would be better if we keep more semantic variable names rather than using single letters, Just makes the code more readable.

  • @samarthsingh2705
    @samarthsingh2705 3 года назад +2

    Very nicely explained sir.I was struggling with this for a long time.

  • @subhasismondal3984
    @subhasismondal3984 3 года назад +2

    U are truly a gem ❤️
    Thank you sir 🙏

  • @sandeepmukherjee8927
    @sandeepmukherjee8927 3 года назад +1

    I really appreciate your crystal clear and lucid explanation Sir !!

  • @shahidkhan4690
    @shahidkhan4690 3 года назад +1

    Nice explanation 👍
    Thanks sir for provide me program logic

  • @ayushtan15
    @ayushtan15 6 лет назад +3

    Very nice explanation Sir, I totally understood the program clearly.

  • @parmodkumar777
    @parmodkumar777 3 года назад +1

    nice explaination

  • @shankarshankar5298
    @shankarshankar5298 3 года назад

    Aapki bt alg h sir gjb ho aap big fan

  • @supernova7870
    @supernova7870 4 года назад +1

    Thanks a lot sir, I learnt programming because of your simple and awesome explanation :)

  • @Instantcrypt
    @Instantcrypt 4 года назад +1

    c# Which book would be good for reading

  • @nishantsharma8776
    @nishantsharma8776 7 лет назад

    you are the best teacher in the world

  • @hary4065
    @hary4065 4 года назад +3

    It was a nice experience while coding it all by myself.

  • @singhanurag400
    @singhanurag400 7 лет назад

    Thnk u so much sir, concept acha h but thora Tricky h sir. Ar bhi dusre ways h isko asani se implement krne ke.

  • @starkendeavours7072
    @starkendeavours7072 3 года назад

    sir aapne last mein 16 tak check kyun kiya ye samjha but, suppose in this string suppose main string mein 16 Cross hone ke baad bhi last 3 or 2 or 1 character match ho gye, but hume chahiye 4 characters wala substring match ho jaaye, then toh 1st for loop ko 17th or 18th or 19th Character pe match hone ke baad bhi koi fayda nahi hoga, because substring we want is of length 4. toh loop end kar dena chahiye na?

  • @prayagparikh8020
    @prayagparikh8020 6 лет назад +2

    Sir aapke level 0 acheive karne k baad ye program easily ban gaya.THANK YOU SIR!!Lekin sir level 1 data structure ke programs banana thoda hard pad raha hai

    • @rituraj7318
      @rituraj7318 6 лет назад +1

      Prayag Parikh hey can u tell me how to pay for premium channel

    • @atTheRateMinus1
      @atTheRateMinus1 2 года назад

      4 years baad kya haal hai, matlab koi google ka software dev bne ki ni??
      Just asking for fun!

    • @prayagparikh8020
      @prayagparikh8020 2 года назад +1

      @@atTheRateMinus1 Working in TCS
      Planning to go USA in 2022!!
      Thanks for asking👍

    • @atTheRateMinus1
      @atTheRateMinus1 2 года назад

      @@prayagparikh8020 wow, soo thats in just 4 years of practice

    • @prayagparikh8020
      @prayagparikh8020 2 года назад

      @@atTheRateMinus1 4 yrs is a big time! Be consistent

  • @freebird3435
    @freebird3435 3 года назад +1

    substring is called as portion of string ?

  • @ningwamabohang6088
    @ningwamabohang6088 2 года назад

    Thank u sor

  • @GurpreetSingh-th1di
    @GurpreetSingh-th1di 7 лет назад +3

    Tommorow is my paper and i am stuck in this program while studying. Thank you sir

  • @vimalradadiya5929
    @vimalradadiya5929 7 лет назад +3

    sir please make videos of conversion like binary to hexa or to octa or vise versa

    • @sajiiidali
      @sajiiidali 7 лет назад

      vimal radadiya visit computer fundamental playlist...

  • @rajatsinghrawat-b5z
    @rajatsinghrawat-b5z 8 месяцев назад

    sir i ke loop me termination condition me koi yeh sign hai hi nhi loop kaise chal rha hai

  • @dheerajnemalikanti3703
    @dheerajnemalikanti3703 5 лет назад +4

    #include
    int main()
    {
    printf("excellent video sir!");
    return(0);
    }

    • @partharanke5925
      @partharanke5925 5 лет назад

      @@anshu893 you dont need braces if you have only one statement under the block......i guess??

  • @sajiiidali
    @sajiiidali 7 лет назад +1

    Great sir..... weldone 👍

  • @vishalgangde1202
    @vishalgangde1202 6 лет назад +1

    Sir can this program also return the string and also the index where from the substring is started

  • @shikhapal6849
    @shikhapal6849 4 года назад

    A string is : this is houseful.
    And I'll give input:use
    And I get output as houseful
    Plzz sir bata dijiye

  • @janaanvesh8677
    @janaanvesh8677 4 года назад +1

    sir why you are using additional k,we can use i value instead of k right

    • @soumyaoruganti9990
      @soumyaoruganti9990 3 года назад

      k is index of main string(str), k should change in the second for loop to check if four characters are equal every time. I'm an year late lol.

  • @kulwinderbhatoa5578
    @kulwinderbhatoa5578 6 лет назад +1

    Pls make some programs for structure

  • @RashidKhan-vc6lk
    @RashidKhan-vc6lk 6 лет назад

    sir kya aapne "Pointers and Structures" ke practice videos nhi banaye hain . Maine aapke saare videos dekh liye hain. Kya Premium channel pe isse Kuch zyada sikhne ko milega.
    Is there more C-Programs on the Premium. Please Reply ........ My Respected Sir.

  • @mrinal12354
    @mrinal12354 5 лет назад +5

    Sir this code is not working if substring is found more than once in the main string.

    • @sahiljain2524
      @sahiljain2524 4 года назад

      Return ki jagah koi variable leke increment karayo phir baad me return karayo use check kar ke ki bo zero se bada ho nhi to -1kara do return

  • @souravlayek7996
    @souravlayek7996 5 лет назад +1

    Please made a video for multiple occurrence of substring in the main string

  • @riyakhan6491
    @riyakhan6491 4 года назад

    Sir, why you're taking k=i?

  • @razakhan8828
    @razakhan8828 6 лет назад

    sir me Nios se 12th de rha hu to kya me kisi ache cllg se bca or mca kr skta hu
    plz rply sir

  • @akankshyasahu2440
    @akankshyasahu2440 6 лет назад

    Sir Please make a video on The Topic " Operator Overloading Using Friend Function "

    • @rituraj7318
      @rituraj7318 6 лет назад +1

      Akankshya sahu watch c++ by saurabh shukla {lecture 12 friend function part 3,4,5}

    • @akankshyasahu2440
      @akankshyasahu2440 6 лет назад

      Thanks

  • @solemnfacts8404
    @solemnfacts8404 2 года назад

    Sir apne i ke loop me i+l-1 kuy likha ..phle to apne sirf i likha tha

  • @ravikhatrisstuff
    @ravikhatrisstuff 6 лет назад

    Sir KMP algo se or ache se ho sakta hain...

  • @bellalmahtab8220
    @bellalmahtab8220 3 года назад

    Sir app substring Kya hota haii ye smjahye hiinii

  • @tushartripathi5213
    @tushartripathi5213 7 лет назад +2

    Please launch tutorial series for python. From a long time, no programming language series has been added

  • @jiteshsharma4692
    @jiteshsharma4692 7 лет назад

    bohot bohot badiya

  • @kshitizsharma6124
    @kshitizsharma6124 5 лет назад +1

    Sir hamne I ki value ko 16 pe hi rok dia but what if wo last 4. Words hi substring ho tho kya karenge

    • @hlen2006
      @hlen2006 3 года назад

      Inner for loop me wo substring find ho jayegi because inner loop 16 to 19 tkk check hoga

  • @unlockingjigyasa2240
    @unlockingjigyasa2240 7 лет назад

    Kal ki video me maine jo comment aapko bheja tha uska aapne reply nahin Diya jisme bhu aur bhi(iit) se mca Kar ne ke baare mein poocha Tha maine

  • @ManojYadav-lx3lv
    @ManojYadav-lx3lv 6 лет назад

    Sir plz tell me agar k nahi letae tab bhi toh program ho jata

  • @ujjwalkumar19
    @ujjwalkumar19 7 лет назад +1

    Sir c++ me copy constructor diagram se explain ker dijiye plzz.

  • @sanchitasaha201
    @sanchitasaha201 5 лет назад +1

    This code is showing error sir

  • @praveenparashar5002
    @praveenparashar5002 6 лет назад +2

    'j' ka max value to 'l-1' hoga to fir if(j==l) kaise ho sakta hai

    • @starkendeavours7072
      @starkendeavours7072 3 года назад

      In the 2nd for loop, when the substring matched at index 8, "j" starts from 0 and ends at 3, but because of the condition "j++", it became '4', and condition of 2nd for loop becomes False. And also l = 4 initially. So ( j == l) will be true.

  • @jayantakumar841
    @jayantakumar841 7 лет назад +2

    Sir when you launch your Python series

  • @ngnd5065
    @ngnd5065 7 лет назад

    double linked list ke video kaha par h. sir

  • @abhijitdebnath4087
    @abhijitdebnath4087 2 года назад

    ♥️♥️♥️

  • @utkarshtripathi2349
    @utkarshtripathi2349 7 лет назад

    Sir c++ me gui based program kese bnte hai

  • @AnkurChutia-p9i
    @AnkurChutia-p9i 7 лет назад

    WITHOUT TAKING ANY DEGREE

  • @anandprabhu8581
    @anandprabhu8581 3 года назад

    👌

  • @rituraj7318
    @rituraj7318 7 лет назад

    Can anyone tell how to pay for premium channel

  • @AnkurChutia-p9i
    @AnkurChutia-p9i 7 лет назад +1

    SIR KYA ME ISS CHANNAL SE PROGRAMMING SIKH KAR BADA PROGRAMMAR BAN SAKTAHU

  • @AnkitYadav-gb1cg
    @AnkitYadav-gb1cg 6 лет назад

    Sir,plz tell about anagram ..

  • @ankurkumar-bn4xd
    @ankurkumar-bn4xd 5 лет назад +1

    Sir, pointer ka solution upload kijiye na sir please🙏🙏

  • @miraclegaming191
    @miraclegaming191 4 года назад

    🔥🔥

  • @code.zone.2.0
    @code.zone.2.0 5 лет назад

    I need video on KMP algorithm.

  • @codecraftersenigma
    @codecraftersenigma 6 лет назад

    Do we really need a video recording for finding sub string ??? If that is the case how many videos should i have to upload for my programs

  • @amaansiddiqui734
    @amaansiddiqui734 4 года назад

    ❤️

  • @ShiWanika_world2508
    @ShiWanika_world2508 6 лет назад

    Sir y smajh nhi aya