String Comparison Function - strcmp()

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 44

  • @accessdenied9393
    @accessdenied9393 Před 3 lety +7

    I would like to mention that what actually is get compared, are the ASCII codes for each character, not the characters themselves.

  • @arularasij3099
    @arularasij3099 Před 4 lety +5

    You're explanation is really Awesome..... Everyone can clearly understand...

  • @muneebtahir
    @muneebtahir Před 2 lety +2

    you know what.... TYSM bro, you have no idea how much you have helped... you saved a lot of my time... you're a lifesaver!

  • @vijaykounsalye
    @vijaykounsalye Před 5 lety +4

    your teaching is fantastic and understandable.

    • @laneshane9721
      @laneshane9721 Před 3 lety

      sorry to be off topic but does someone know of a method to get back into an Instagram account..?
      I stupidly lost the password. I would love any help you can give me.

    • @holdencrew8449
      @holdencrew8449 Před 3 lety

      @Lane Shane Instablaster :)

    • @laneshane9721
      @laneshane9721 Před 3 lety

      @Holden Crew thanks for your reply. I found the site through google and I'm in the hacking process now.
      I see it takes quite some time so I will get back to you later with my results.

    • @laneshane9721
      @laneshane9721 Před 3 lety

      @Holden Crew it worked and I actually got access to my account again. Im so happy:D
      Thanks so much, you really help me out !

    • @holdencrew8449
      @holdencrew8449 Před 3 lety

      @Lane Shane Happy to help =)

  • @rashmitbhanderi596
    @rashmitbhanderi596 Před 3 lety +4

    Why is the output of this code greater or equal to s2
    int main()
    {
    char *s1 = "xyz";
    char *s2 = "cdeabzxydsf";
    if(strcmp(s1,s2)

    • @pradhanan9413
      @pradhanan9413 Před 3 lety +2

      S1 is greater than S2
      Because we should give priority to the ASCII table and then consider the length of the strings.
      Idk the reason but I executed this and checked

  • @quamzgraphix9826
    @quamzgraphix9826 Před 4 lety +2

    Thank you very much for this video...

  • @cedwardmassey
    @cedwardmassey Před 2 lety

    About 12 years ago, I defined my own version of strcmp(), with a third - a bool - parameter, "CaseSensitive." I wish that it was written to do it that way, with a "true" default argument for that third parameter. But, my own version can't use a default argument, because it would create ambiguity, unless I changed the name of my version of the function.

  • @Gamer-rs6ow
    @Gamer-rs6ow Před 2 měsíci

    Thank you

  • @abhishek5212
    @abhishek5212 Před 8 měsíci

    Thank you so much ❤❤❤❤❤

  • @RaphaelRafatpanah
    @RaphaelRafatpanah Před rokem

    Excellent explanation

  • @SagarKumar-nh3no
    @SagarKumar-nh3no Před 5 lety +1

    Sir please complete C programming as soon as possible.

  • @Gunstun0p
    @Gunstun0p Před 5 lety +1

    Thanks for sharing this much

  • @kunalsoni7681
    @kunalsoni7681 Před 5 lety +2

    nice one presentation sir 😙❤😍😙

  • @ahmedaj2000
    @ahmedaj2000 Před 2 lety

    thank you for a detailed explanation

  • @dafancy6345
    @dafancy6345 Před 3 lety

    Thank you! Very helpful video.

  • @aadarshvarma6313
    @aadarshvarma6313 Před 4 lety +1

    Thank you so much 👍👍🙌🙌🙌🙌

  • @herculean6748
    @herculean6748 Před 2 lety

    Thanks

  • @RahulKumar-no3rs
    @RahulKumar-no3rs Před 5 lety +1

    U r the best

  • @aritrasarkar1557
    @aritrasarkar1557 Před 5 lety +1

    Sir can you do lecture on computer science networking. Thank you

  • @ahmadaboajineh6348
    @ahmadaboajineh6348 Před 2 lety

    thank you

  • @niranjanaprasad4293
    @niranjanaprasad4293 Před 2 lety

    Thank you very much💜

  • @RahulKumar-no3rs
    @RahulKumar-no3rs Před 5 lety +1

    Data structures pls

  • @block8974
    @block8974 Před 4 měsíci

    What if str1 is longer than s2, but str1 begins with B and str2 begins with A

  • @Zaii_3
    @Zaii_3 Před 3 lety

    I love you bro keep it up!

  • @jeffbezos3942
    @jeffbezos3942 Před 3 lety +1

    Does it also work for single letters?

  • @cond6920
    @cond6920 Před 4 lety +1

    If I had like 100 strings in a .txt , and 100 more strings in other .txt, how can I make a program to read this two .txt and it give me what strings is different?

    • @accessdenied9393
      @accessdenied9393 Před 3 lety

      You don't have to have a C program. You can use "diff" command-line utility in Linux to perform this task so easily

    • @cond6920
      @cond6920 Před 3 lety

      @@accessdenied9393 I get you, but it was 11 months ago xD

    • @cond6920
      @cond6920 Před 3 lety

      @@accessdenied9393 but, ty

  • @dilipjain6899
    @dilipjain6899 Před 4 lety +1

    where is the value of strcmp stored?

  • @akshatk1690
    @akshatk1690 Před 2 lety

    string

  • @stevenshrii
    @stevenshrii Před 3 lety

    Sam

  • @sealandland3959
    @sealandland3959 Před 2 lety

    what the hell is "furst" ?

  • @safwan096
    @safwan096 Před rokem

    sky code?
    dafaq are you saying bruh

  • @178fahimahmed7
    @178fahimahmed7 Před 4 lety

    Not informative. u should run it in the Code blocks for better understanding