Program to reverse a string without using strrev in C Language

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

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

  • @osheenverma1996
    @osheenverma1996 5 лет назад +12

    I've never ever seen this kind of bestest faculty for programming.... I was blunt in programs... But with ur unique way of explanation is amazing Sir. Ur doing actually a great job😇🙂🙂👏👏👍👍👍👌👌

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

      for(l=0 ; s[l] ; l++); //this line also use for int ??????

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

    whenever i stuck somewhere, first task i do is to visit your channel SIR. And you always help me

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

    U are the best professor for c programming language in India

  • @sumitgaur6785
    @sumitgaur6785 8 лет назад +10

    Sir, your way of explaining is excellent... Hats off to u sir...

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

    Sir the skill of explainig any doubt is really great

  • @prasangsinghal262
    @prasangsinghal262 5 лет назад +3

    I don't know why this video has 50+ dislikes. It is by far the simplest and easy solution I have seen.

  • @akankshasinghal1236
    @akankshasinghal1236 7 лет назад +4

    Sir ,you have cleared the doubt of actually reversing ,and printing the string in a reverse manner.!!

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

    Thanku so much sir , because of you I actually understand how it happens ,best explanation. 🙏

  • @nam-ji-ah9375
    @nam-ji-ah9375 3 года назад

    Noone is born in this world who can explain like u sir❤🙏

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

    Awesome sir, u nailed it, thanks a lot for this explanation 👍👍

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

    best c lectures i have ever seen

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

    Great sir I love the way you make it easier to understand

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

    as u already told scanf() breaks at white space, but how to compile instead of scanf sir,
    int main()
    {
    char a[20],sw;
    int l,i;
    printf("enter a string: ");
    scanf("%s",a);
    for(l=0;a[l];l++);
    for(i=0;i

  • @MadhaArif
    @MadhaArif Год назад

    thank you so much sir it is too much helpful video

  • @muhammadyounis1110
    @muhammadyounis1110 9 лет назад +4

    thnx sir... sir ap koi mini games ya mini project pe koi series start kren sir ap ka learning style boht zabardast h ,,,,ham ne institute main itna nh seekha sir jitna ap se seekha ,,

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

    More helpful and more valuable Sir thanks so much for all videos support

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

    Awesome sir,u r great
    Explanation is very very nice.
    Sir Aap mere ideal ho.

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

    Omg, perfect teacher

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

    U r genious sir, thanks to be a sir like uh🙏🙏🙏🙏🙏

  • @sourabh.jangra
    @sourabh.jangra 2 года назад

    Great Information !!

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

    Thank you so much sir ji

  • @himaniskitchen124
    @himaniskitchen124 8 лет назад +1

    nice explanation sir, please upload video of spiral matrix

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

    thank you from algeria ...

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

    you are great

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

    Great !! You are explaining very good. Thanks a lot...
    But I want to suggest you something that please use an editor to explain or explain through ppt.
    ☺️

  • @Ogmoli
    @Ogmoli 11 месяцев назад

    Sir is program ko exam me use kar skta hun please reply❤

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

    Sir aapke premium video aur normal me kya farak hai .
    Aur sir aapke web development premium agar mai leta hu toh mujhe usme frontend ka aur backend dono sikhne ko milega?

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

    But sir the end result with or without predefined function is same.. What's the difference you're actually talking about??

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

    Great Sir Thank you.

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

    thanks sir

  • @suchitpatel2
    @suchitpatel2 Год назад

    Thankyou sir g...

  • @himaniskitchen124
    @himaniskitchen124 8 лет назад +7

    sir , u didn't tell that if we don't include header file even then pgm will run.. but how??

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

    bahut vadia sir g

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

    sir windows mai ye code pr error aati hai for loop likha hai aapne waha l=0;s(l)mai s(l) mai error aati hai u try to use this as function aa rha

  • @Rohit-te9dr
    @Rohit-te9dr 6 лет назад

    Sir yeh second loop samaj nahi aaya jab l/2 kar diya toh length half hoh jaegi to ab s[i] =s[L-1-i] seh kaise interchange hoh raha hai kyuki ismeh toh aapne 0 koh 7 seh replace kiya hai???????

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

    sir, if a letter has only 7 character ,then..?

    • @manya_patel1673
      @manya_patel1673 4 года назад +2

      To ap khud se sochiye odd no. Ka middle character middle me hi rhega

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

    Sir agar space hoga to... Kese reverse karenge

  • @AkshayKumar-re9sp
    @AkshayKumar-re9sp 7 лет назад

    Sir pls make progrom to check whether paliondrom or not with function

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

    All right sir but ...Aise me to L ki value 8 nhi 7 aa rhi hai...print kra ke bhi dekha hai maine.......

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

    Sir me Ubuntu me programing karta Hoon ...to isme space print nahi hot hai ..suppose saurabh sukla.to saurabh ke baad atak jata hai..

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

    Sir....why we have run the second loop upto l/2....i

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

    Thanku Sir ji

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

    i found a very easy way to do it ,. and it WORKS..
    #include=1);
    getch();
    }
    please reply sir ... can i do in this way

    • @Ogmoli
      @Ogmoli 11 месяцев назад +1

      Brother ? Is program ko exam me use kar skta hun ??😊

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

    char s[50],temp;
    int start=0;
    int end, l;
    gets(s);
    for(l=0;s[l];l++);
    end=l-1;
    while(start

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

    After finding l we can also find it as for(i=l ; i>=0 ; i--)
    {
    printf("%c",a[i]);
    }
    🙏🙏🙏

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

    Why haven't you use strlen() for string length?

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

      He try to tell us , how we get length of string and reverse of string without using built in functions

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

    Sir, jab apne first for loop use kiya h to s[l] ki value zero hone tak loop chalna hoga to for loop me for(l=0;s[l] =0 ;i++); q use nhi kiya ?

    • @totonmukherjee773
      @totonmukherjee773 Год назад

      S[l]='/0';--------aai hoga(null) zero nahi hoga. But if it will be null then it will not consider the string after space.

  • @project_2004
    @project_2004 Год назад

    🔥🔥🔥

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

    Respected Sir,
    You had not used s[l] !='\0' as a condition to find string length,why?

  • @kp0179
    @kp0179 8 лет назад +4

    Sir,
    for first for loop the condition should be like this right ?
    for ( l=0; s[l] != 'null'; l++);

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

    wah sir ji

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

    Sir ..which IDE you used for programming ??

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

    Thanks sir❤️

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

    First for loop. Syntax kaise valid hai????!!!

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

    Logic behind for(l=0;s[l];l++) is not clear properly.:(

  • @abhishekarora98
    @abhishekarora98 8 лет назад

    sir can we use strlen instead of for loop ??

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

    can we take it as (l-1)/2

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

    draw a flow diagram to input your name and print it in reverse

  • @deepakyadav-bi1xd
    @deepakyadav-bi1xd 11 месяцев назад

    why make extra \0 in it ....

  • @shashwatyadav1784
    @shashwatyadav1784 8 лет назад

    sir,why have you taken main as an integer function here? you should have written void before main().

    • @akaashtanti6450
      @akaashtanti6450 8 лет назад +1

      u can write anything void or int same function in program is there

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

      Shashwat Yadav on pg

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

    for(l=0 ; s[l] ; l++); //this line also use for int ??????

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

    Sir ,u didn't use strrev() function.why?

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

      This program is for reversing a string without using strrev( )

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

    Sir codes ki forum file bhi link may dedegiye ..

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

    Sir program turbo pr bataya kare please

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

    I think it is sort of wrong to teaser a video in English and then have it in Hindi instead.

  • @রাকিব-ম৮প
    @রাকিব-ম৮প 4 года назад

    sir i reverse this way
    int i,l;
    char ch,s[20];
    printf("enter which to reverse:");
    gets(s);
    l=strlen(s);
    for(i=0;i

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

    This code is actually complicated

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

    Last Ka step I have. Not clear understand

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

    l/2 q lagaya hai>>??/

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

    main()
    { /* this is correct or not
    char s[30]; to scan the string*/
    printf("Enter your name");
    for(i=0;s[i]!='\0';i++)
    scanf("%c",&s[i]);
    getch();
    }

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

    why you use gets()

  • @PankajDas-mw4uq
    @PankajDas-mw4uq 5 лет назад +6

    Aap hmesha string ki length half krne ka logic lagate ho.....agar kabhi odd string aa gyi tab kya logic lgaoge

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

      Actually sir explained it, if we divide 9 and 2, it will give 4, not 4.5 because both 9 and 2 are integers

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

      @@vaibhavkrkm 👍

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

    sir mene if condition se kiya hai
    main()
    {
    char s[20];
    int i,x;
    printf("Enter Your Name: ");
    gets(s);
    for(i=0;s[i];i++);
    for(x=i;x>=0;x--)
    {
    if(x>=0)
    {
    printf("%c",s[x]);
    }
    }
    }

  • @AkshayKumar-re9sp
    @AkshayKumar-re9sp 7 лет назад

    Sorry without function

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

    Nekal pahali fursat ma nekal

  • @i.m.sumedhj8276
    @i.m.sumedhj8276 6 лет назад

    Aapp ne job nahi chodna chaiye tha

  • @DINESHKUMAR-zi7cm
    @DINESHKUMAR-zi7cm 6 лет назад

    /* program to reverse string without using strrev() */
    #include
    #include
    #include
    void main()
    {
    int i,j,len;
    char s[100],temp;
    printf("enter a string:
    ");
    gets(s);
    len=strlen(s);
    i=0;
    j=len-1;
    while(i

  • @victorogonyo5617
    @victorogonyo5617 8 лет назад +2

    please use english

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

    Don't fucking title your videos in english and speak in another language!

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

    Likhne ka tarika sudharo

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

    thanks sir