C_69 C Program to Reverse a String | with strrev() and without strrev() function

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • In this lecture we will discuss a C program to Reverse a string with strrev() and without strrev() 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

КОМЕНТАРІ • 194

  • @janiaskarova1793
    @janiaskarova1793 2 роки тому +37

    Literally THE best teacher on UA-cam!!!! Thank you so much for such a great explanation!!!!!!

  • @petereziagor7379
    @petereziagor7379 2 роки тому +8

    Wow, this is so powerful. First time seeing your video and I am 100% impressed. Thank you

  • @mohamedmire8646
    @mohamedmire8646 2 роки тому +5

    I like this amazingly lecturer.
    with and with out the predefined functions.
    i have watched multiple others but they just show in way not both like this.
    you are my favourite keep going.

  • @FB-fc2kg
    @FB-fc2kg 2 місяці тому +1

    She knows what all to say, and what all details to include while to make it CRYSTAL CLEAR understanding to beginners. She steps at beginners level herself in order to deliver utmost. Heartfelt THANKS!!!!

  • @jeremiahmbugua3312
    @jeremiahmbugua3312 Місяць тому +1

    Wonderful lecture. This is exactly the type of explanation I was looking for!!!!!

  • @hariharan-yi8tf
    @hariharan-yi8tf 3 роки тому +5

    Tanx, I have started re-learning c programming being an opsimath bit difficult but u made my day🙌

  • @999pubg3
    @999pubg3 3 роки тому +16

    your way of teaching is awesome 🤩 if possible then plzz 🙏 make play list on html , css and java || it a humble request🙏 ||

  • @adarsh7390
    @adarsh7390 3 роки тому +3

    You are changing your teaching style👍👍

  • @ShubhamKumar-tu9ji
    @ShubhamKumar-tu9ji 3 роки тому +5

    The way you teach is just awesome 👍
    Keep on working.

  • @ahmedkhalil3727
    @ahmedkhalil3727 Рік тому

    im ict teacher and its great that you teach me and sharing your knowledge
    i feel like you in classroom and ask me and get afraid :D and replay the part that i didn't understand it again to answer your question :)
    you are really genius !

  • @VENUGOPALREDDY-
    @VENUGOPALREDDY- 3 роки тому +3

    Madam please make videos on python plzz
    I am a mechanical student but intrest to learn python when see u r way of teaching....
    Plzzzzzz plzzzzzzz plzzzzzz plzzzzzzz reply mam...❤️

  • @harshgoyal7114
    @harshgoyal7114 3 роки тому +4

    Thankyou mam. You clear my most of problems.

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @_DharmeshTiwari
    @_DharmeshTiwari 3 місяці тому

    I dont know but loved this lecture and my fev topic ever ❤❤

  • @dailylifeandfeatures
    @dailylifeandfeatures 2 роки тому +2

    Thanks ❤️ for this masterpiece heart Fr0m Kashmir (Gulmarg) 😍

  • @prachirawat1835
    @prachirawat1835 3 роки тому +1

    Best playlist for C language

  • @madhavisinha6350
    @madhavisinha6350 3 роки тому +26

    You are best mam

  • @harshvardhan8526
    @harshvardhan8526 5 місяців тому

    mam aapki wajh se muje programming easy lagni lagi hai

  • @techcode4714
    @techcode4714 3 роки тому +6

    Thanks Mam for your great effort and gives us great lecturer.. ❣️

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @KULDEEPSINGHGMech-
    @KULDEEPSINGHGMech- Рік тому

    so awesome teaching really to much interested teaching way

  • @aniketkumar3126
    @aniketkumar3126 3 роки тому +5

    Lovely explaination Hats off🎩

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @mabiormayiol-ey7yb
    @mabiormayiol-ey7yb 6 місяців тому

    Your angel eyes are increasing my understanding

  • @SravanKumar-uc6qt
    @SravanKumar-uc6qt 3 роки тому +1

    Respected madam zi,
    Helping to strengthen to programme,

  • @balajimukkara
    @balajimukkara 3 роки тому +1

    Mam ur teaching is very nice and easy to understand

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @masumborkar441
    @masumborkar441 Рік тому

    Ur 😊 explanation is just wow

  • @AjeetKumar-mo6xt
    @AjeetKumar-mo6xt 3 роки тому +1

    Mam ! In every video You smile in the beginning and at the end only 😃😃
    I like that though ❤️

  • @pankhuri7002
    @pankhuri7002 Рік тому

    isme hm log for loop me agr change kr lete for(I=6;I

  • @pramodhkumart8881
    @pramodhkumart8881 8 місяців тому

    Best Explanation.. ever .🎉

  • @ayyoubezzouine
    @ayyoubezzouine Рік тому

    As always miss ! you have a teaching talent , continue please ! god bless you

  • @tsm881
    @tsm881 Рік тому +1

    Very good explanation.. thanks 😊

  • @RTBOSS
    @RTBOSS 3 роки тому +1

    Whenever you star UDF please explain it with some easy way because I was learned that before 5 time but steal confusing... 😵

  • @arvindthakur.99
    @arvindthakur.99 3 роки тому +2

    👍 Very helpful video Mam.

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @tareqaziz8150
    @tareqaziz8150 3 роки тому +1

    At first Thank you. I watch your lecture regularly, my question to you which camara you use? or camara brand and model name please mention this.

  • @VikashSingh-fr1wm
    @VikashSingh-fr1wm 3 роки тому +2

    New viewer of your channel mam..

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @ShubhamSharma-sv5fe
    @ShubhamSharma-sv5fe 7 місяців тому

    Greatly explain ma'am.......

  • @lokeshnehete6149
    @lokeshnehete6149 2 роки тому +1

    Superb explained mam...

  • @rajanitdep1702
    @rajanitdep1702 3 роки тому +1

    Mam, Iam from Mass, still watching your vedios for understanding humen technology.

    • @741ibrahim2
      @741ibrahim2 3 роки тому

      mass!!!!!!!!! pe paani hai kya

  • @manikantarajudhavala3543
    @manikantarajudhavala3543 3 роки тому +7

    #inclde
    #inclde
    #inclde
    Main()
    { char s[20];
    printf ("
    enter a string ") ;
    gets(s) ;
    strrev(s) ;
    printf (the reverse string is%d, s)
    }
    OUTPUT:
    Enter a string
    The reverse string is inam
    Mani

  • @shyamsuratyadav655
    @shyamsuratyadav655 3 роки тому +2

    Thank you so much ma'am ❤️

  • @dandesgeorge
    @dandesgeorge Місяць тому

    thank you
    much love from Romania

  • @yadavji6724
    @yadavji6724 3 роки тому +2

    Best of tha best teacher 😘😘

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @tanvibatham1101
    @tanvibatham1101 2 роки тому +1

    such a great explanation

  • @menezes.d.191
    @menezes.d.191 7 місяців тому

    Tomorrow is my C program Lab practical exam and here I'm watching it now 👅

  • @nikhilguleria4313
    @nikhilguleria4313 2 роки тому

    your logic in always great

  • @yogeesh_kulal02
    @yogeesh_kulal02 6 місяців тому +26

    Playback speed 1.5X😂

    • @aashishsingh6857
      @aashishsingh6857 6 місяців тому +4

      No bro 2x and at exam time yh bhi slow lagta h 🙂🙂

    • @yogeesh_kulal02
      @yogeesh_kulal02 6 місяців тому +2

      @@aashishsingh6857 if you have exam then. why are you reading comments 😂

    • @lamaalghanam2215
      @lamaalghanam2215 5 місяців тому +2

      @@aashishsingh6857 me right now😂

    • @sahar_sphere
      @sahar_sphere 2 місяці тому

      For me, it’s 2x.

    • @PARTHA0609
      @PARTHA0609 2 місяці тому

      @@yogeesh_kulal02 2x

  • @PKTECHIE26
    @PKTECHIE26 3 роки тому +2

    Thanks🙏🙇

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @Ahmad_raza77770
    @Ahmad_raza77770 11 місяців тому

    Very very thank you mam 🎉😊.

  • @wwyou-we2283
    @wwyou-we2283 2 роки тому

    thanks for discuss it.

  • @manveenkaur4878
    @manveenkaur4878 3 роки тому +4

    mam in how many days this course will be complete (estimated time)??

  • @naninani7109
    @naninani7109 2 роки тому

    Queen of c language

  • @pradnyadukre6248
    @pradnyadukre6248 3 роки тому +1

    Mam plz explain process structure of c.

  • @meghasinha1706
    @meghasinha1706 3 роки тому

    Thanks for your efforts mam

  • @YogeshKumar-ur5oj
    @YogeshKumar-ur5oj 2 роки тому +1

    Mam you are a great teacher
    Could you tell you are studied from which IIT

  • @azhar3001
    @azhar3001 2 роки тому +1

    Mam how can reverse user input string with Preserving position of Space? Plz help

  • @truptiarade3193
    @truptiarade3193 3 роки тому

    very very nice teaching learning mam

  • @leelakumarreddy6566
    @leelakumarreddy6566 3 роки тому +1

    Mam I am very pure in maths
    even I don't coding also
    Mam I can take cse (IT)
    Please tell Mam

  • @tejassharma3212
    @tejassharma3212 2 роки тому

    Thanks a lot mam 😊😊♥️♥️

  • @VishalAwati18
    @VishalAwati18 2 роки тому

    But ma'am u said while counting the length of string, we should not consider the null character.???

  • @pradnyadukre6248
    @pradnyadukre6248 3 роки тому

    #include
    int main()
    {
    float f=0.1;
    if(f==0.1)
    {
    printf("no");
    }
    }
    Mam why if condition getting false here ,plz explain

    • @741ibrahim2
      @741ibrahim2 3 роки тому +1

      i think if does not store float value

    • @pradnyadukre6248
      @pradnyadukre6248 3 роки тому

      @@741ibrahim2 nahi..if so,compile time would have shown an error....it is compiling.

  • @srivishnukumar8932
    @srivishnukumar8932 2 роки тому

    Cute explanation

  • @joychakraborty4367
    @joychakraborty4367 2 роки тому

    You are amazing 😌

  • @gskerbecs9513
    @gskerbecs9513 9 місяців тому

    Thanks alot mam

  • @alohoodalsahli1070
    @alohoodalsahli1070 2 роки тому

    You are the best 🤩

  • @balajibattu3001
    @balajibattu3001 2 роки тому +1

    Hello mam,
    Iam placed as embedded software developer, recently.
    Will this unacademy useful to me to improve my coding ?
    Let me know briefly about it.
    Thank you mam &
    You are one of my best best faculty 💖.
    I love the way , how you are teaching ✨...

  • @rythmikz_beatbox
    @rythmikz_beatbox 2 роки тому

    Thank u maam ❤️❤️❤️

  • @ANILKUMAR-vv1fz
    @ANILKUMAR-vv1fz 3 роки тому

    Awesome logic

  • @debojitacharjee
    @debojitacharjee 2 роки тому +3

    *REVERSING OF STRING IS NOT SWAPPING* - strrev() does swapping of characters but if a string can be printed in reverse order then it's also reversing. If the requirement is only for output then reversing a string without swapping is also correct. But why are you doing this with for loop if we can use strrev() for that?
    I have written a code to reverse the code without using the string header. Here is the code:
    // Program to reverse a string without using string.h header file
    #include
    int main()
    {
    char a[31], swap_a;
    int i, j, a_size, string_size = 0;
    for (i = 0; i < 30; i++)
    {
    a[i] = 0;
    }
    printf("Enter a word within 30 characters: ");
    scanf("%s", a);
    for (i = 0; a[i] != 0; i++)
    {
    string_size++;
    }
    for (i = 0, j = string_size; i < string_size/2; i++)
    {
    swap_a = a[i];
    a[i] = a[j-1-i];
    a[j-1-i] = swap_a;
    }
    printf("%s
    ", a);
    return 0;
    }

    • @ajayijohnson
      @ajayijohnson 2 роки тому +1

      Because some compilers wont see the strrev() function in the library. This way, one can write the function by one’s self and then use it throughout the program.

    • @debojitacharjee
      @debojitacharjee 2 роки тому

      @@ajayijohnson strrev() is defined in string.h header file and which compilers do you THINK don't SUPPORT this header file?

    • @ajayijohnson
      @ajayijohnson 2 роки тому

      @@debojitacharjee Yes! I know it’s in that header file string.h but then I’m also aware that it’s mostly available in windows system. I have tried to use this command in a Linux environment and the function strrev() and some other functions are not in the header file string.h. There peculiarities with different environment and in case one cannot find it, the algorithm can be written.

    • @debojitacharjee
      @debojitacharjee 2 роки тому

      @@ajayijohnson it's the problem with gcc compiler but that means compiling on Windows would make a program more code optimized. Using functions instead of custom code optimizes the overall LOC.

    • @aadhil9270
      @aadhil9270 Рік тому

      @@debojitacharjee online compilers

  • @shauryamusic7094
    @shauryamusic7094 3 роки тому +2

    thank u mam

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html

  • @chandrakantsolanki1635
    @chandrakantsolanki1635 3 роки тому +1

    Mam I fall in your eye

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 Рік тому

    Thanks mam. Please mam send me the C notes

  • @Rakeshkumar-cr2go
    @Rakeshkumar-cr2go 3 роки тому +1

    Namskar mam, mai aapka ek subscriber hu, kya aap meri kuch madad kr skte hai. Mai apne computer me jaise hi keyboard plugin krta hu uske baad automatic files open hone lagti hai, automatic kuch letter type hone lgta hai, aur fir 1 se 2 minutes ke ander shut down ho jata hai. Maine 1) pc usb port bhi change kra liya 2) keyboard bhi change kra liya. 3) UA-cam ke tricks bhi try kr liya fir bhi sahi nhi hua, ab aap bataye mai kya karu

  • @EhabSmH0
    @EhabSmH0 Рік тому

    I can't understand how a parameter can be a pointer, and how is it used as a string in strrev function??

  • @ishanrajvanshi6335
    @ishanrajvanshi6335 2 роки тому

    Ma'am when did you taught swapping of two numbers?

  • @BhupathiAbhichethan
    @BhupathiAbhichethan Рік тому

    mam lecture is good but plz try to avoid background sounds

  • @anshulsingh1265
    @anshulsingh1265 3 роки тому +4

    Ma'am Can you explain your lectures using java??

  • @sayantisahaxcroll3250
    @sayantisahaxcroll3250 7 місяців тому

    Why we don't use puts instead of printf?

  • @vineethavs9845
    @vineethavs9845 3 роки тому

    Thanku so much mam

  • @RTBOSS
    @RTBOSS 3 роки тому

    Ye logic kahi to dekha he....😗 by the way thank you

  • @mahadeolokhande2996
    @mahadeolokhande2996 Рік тому

    Tnq u 😮

  • @hozefabharmal9885
    @hozefabharmal9885 5 місяців тому +1

    #include
    #include
    int main() {
    int len1;
    char s1[1000];
    printf("Enter your string : ");
    fgets(s1,100,stdin);
    len1 = strlen(s1);
    for(int i = len1; i>=0; i--) {
    printf("%c", s1[i]);
    } printf("

    ");
    return 0;
    }

  • @mass9323
    @mass9323 3 роки тому

    How many days did what to learn c language

  • @AtulYadav-ve5nq
    @AtulYadav-ve5nq 2 роки тому

    Mam this is a string or a array.

  • @srivishnukumar8932
    @srivishnukumar8932 2 роки тому

    Tq mam

  • @PILLUDAS100
    @PILLUDAS100 2 роки тому

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

  • @NikhilSarnaik-z5k
    @NikhilSarnaik-z5k Рік тому +4

    #include
    #include
    int main(){
    char str[30] = "Nikhil";
    int len = strlen(str);
    int j = len-1;
    int i=0;
    while(j > i){
    char ch = str[i];
    str[i] = str[j];
    str[j] = ch;
    j--;
    i++;
    }
    printf("%s",str);

    return 0;
    }

    • @RachitSrivastava69
      @RachitSrivastava69 10 місяців тому

      #include
      #include
      #include
      void main()
      {

      char s1[30];
      gets (s1);
      int l=strlen(s1);
      for(int i=l;i>=0;i--)
      {
      printf("%c",s1[i]);
      }
      }

    • @Achyutanand-vw9vf
      @Achyutanand-vw9vf 6 місяців тому

      #include
      #include
      #include
      void main(){
      char str1[50]="India is great",str2[50];
      int l=strlen(str1),i,j=0;
      printf("Original string=%s
      ",str1);
      for(i=0;i

  • @vaishagnair2768
    @vaishagnair2768 Рік тому

    Cant we use two for loop??

  • @vasu_13.
    @vasu_13. Рік тому +1

    22:43 Kya Kar Rahi Hu😅😂

  • @mahankaliramasai8302
    @mahankaliramasai8302 3 роки тому +1

    Pls upload python play list mam

  • @rohangupta.1
    @rohangupta.1 3 роки тому

    Can you give me solution of this
    write a C program that create data structure that are larger than the amount of physical memory contained in their machine

  • @sidharthsinghania5931
    @sidharthsinghania5931 3 роки тому +4

    1??it is an integer and string is character type array having \0 at the end, is it possible to include integer in it??? Just asking as I am having confusion

    • @pskpk258
      @pskpk258 3 роки тому +3

      1 is not just integer
      '1' is treated as character also in C.
      For example, in print statements where you want to print a number or menu, we print as :
      printf("1.Option 1
      2.Option 2
      3.Option 3
      ");
      Here the numeric symbols are treated as characters.
      But in arithmetic (math) operations, the numeric symbols are treated as math numbers.
      Eg :
      int c= 5+3; // c=8 will be stored
      So we can use 1 as number and '1' as character
      So yes, you can include numbers in your strings too, where the number also will be treated as character.
      Note :
      //char ch=1; //wrong use
      char ch= '1'; //ch stores '1' as character
      printf("%c",ch); //will print 1
      int num=1;
      //int num='1'; //wrong use
      printf("%d",num); //prints 1
      num++; //correct
      //ch++; //wrong bcoz ch is character and addition is done only on numbers, not characters

  • @nallabothulasimhadri6213
    @nallabothulasimhadri6213 10 місяців тому

    Mam i have a problem. My c programing madam is beautiful😍, watching her beautiful face, i can't learn subject. That's why i opened u tube to learn, but the problem is repetd agin bcuz you are too beautiful then her😍. I think i can't learn c 😅.

  • @tpvideo8725
    @tpvideo8725 3 роки тому

    Mam how to find greatest word from given sentence?

  • @PKTECHIE26
    @PKTECHIE26 3 роки тому +1

    Mem kitne lecture or hoge
    To complete c

  • @harshavardhankorlepara
    @harshavardhankorlepara Рік тому

    at 4:42 you are a bit confused...i think mam

  • @shivanshusamadhiya9416
    @shivanshusamadhiya9416 3 роки тому

    Mam which topic you teach after teaching string

  • @Yami-br4vr
    @Yami-br4vr 2 роки тому

    Wuthout using string function yet u sue string function strlen why mam?

  • @shekharsah2777
    @shekharsah2777 3 роки тому

    MAINE AAJ AAPKO DWARKA SEC 19 AMBHARI GAON KE PASS DEKHA

  • @vasanth7672
    @vasanth7672 2 роки тому

    You not used the strrev() function🙄

  • @marufalom7116
    @marufalom7116 2 роки тому

    I'm from Arts background still I'm there 😂

  • @siribura4982
    @siribura4982 2 роки тому

    why does gets function is not working in my compiler its giving me error

  • @adityaagrawal8201
    @adityaagrawal8201 3 роки тому +1

    Best

    • @computer5548
      @computer5548 3 роки тому

      ua-cam.com/video/RNXLD9jTcQ4/v-deo.html