String Comparison Function - strcmp()

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

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

  • @accessdenied9393
    @accessdenied9393 3 года назад +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 4 года назад +5

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

  • @muneebtahir
    @muneebtahir 2 года назад +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 5 лет назад +4

    your teaching is fantastic and understandable.

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

      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 3 года назад

      @Lane Shane Instablaster :)

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

      @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 3 года назад

      @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 3 года назад

      @Lane Shane Happy to help =)

  • @gowthams4360
    @gowthams4360 2 месяца назад

    abc < abcd because at last ending of the string in abc we have null whose assci is 0 which is less than the equivalent assci value of d
    ..............vijay babu .............understood

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

    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.

  • @rashmitbhanderi596
    @rashmitbhanderi596 3 года назад +5

    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 3 года назад +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

  • @SagarKumar-nh3no
    @SagarKumar-nh3no 5 лет назад +1

    Sir please complete C programming as soon as possible.

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

    Excellent explanation

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

    thank you for a detailed explanation

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

    Thanks for sharing this much

  • @kunalsoni7681
    @kunalsoni7681 5 лет назад +2

    nice one presentation sir 😙❤😍😙

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

    Thank you so much 👍👍🙌🙌🙌🙌

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

    Thanks

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

    Thank you! Very helpful video.

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

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

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

    Thank you very much💜

  • @RahulKumar-no3rs
    @RahulKumar-no3rs 5 лет назад +1

    U r the best

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

    thank you

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

    I love you bro keep it up!

  • @RahulKumar-no3rs
    @RahulKumar-no3rs 5 лет назад +1

    Data structures pls

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

    Does it also work for single letters?

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

      Single letter string is fine, but single char is not

  • @block8974
    @block8974 6 месяцев назад

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

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

    where is the value of strcmp stored?

  • @cond6920
    @cond6920 4 года назад +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 3 года назад

      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 3 года назад

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

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

      @@accessdenied9393 but, ty

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

    string

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

    Sam

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

    what the hell is "furst" ?

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

    sky code?
    dafaq are you saying bruh

  • @178fahimahmed7
    @178fahimahmed7 4 года назад

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

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

    Thank you very much for this video...

  • @Gamer-rs6ow
    @Gamer-rs6ow 4 месяца назад

    Thank you

  • @abhishek5212
    @abhishek5212 10 месяцев назад

    Thank you so much ❤❤❤❤❤