String Comparison Function - strcmp()

  Рет қаралды 137,635

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 46
@accessdenied9393
@accessdenied9393 3 жыл бұрын
I would like to mention that what actually is get compared, are the ASCII codes for each character, not the characters themselves.
@muneebtahir
@muneebtahir 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!
@arularasij3099
@arularasij3099 4 жыл бұрын
You're explanation is really Awesome..... Everyone can clearly understand...
@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.
@vijaykounsalye
@vijaykounsalye 5 жыл бұрын
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 =)
@rashmitbhanderi596
@rashmitbhanderi596 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
Sir please complete C programming as soon as possible.
@RaphaelRafatpanah
@RaphaelRafatpanah Жыл бұрын
Excellent explanation
@Gunstun0p
@Gunstun0p 5 жыл бұрын
Thanks for sharing this much
@herculean6748
@herculean6748 2 жыл бұрын
Thanks
@kunalsoni7681
@kunalsoni7681 5 жыл бұрын
nice one presentation sir 😙❤😍😙
@ahmedaj2000
@ahmedaj2000 2 жыл бұрын
thank you for a detailed explanation
@aadarshvarma6313
@aadarshvarma6313 4 жыл бұрын
Thank you so much 👍👍🙌🙌🙌🙌
@ahmadaboajineh6348
@ahmadaboajineh6348 3 жыл бұрын
thank you
@dafancy6345
@dafancy6345 3 жыл бұрын
Thank you! Very helpful video.
@RahulKumar-no3rs
@RahulKumar-no3rs 5 жыл бұрын
U r the best
@niranjanaprasad4293
@niranjanaprasad4293 2 жыл бұрын
Thank you very much💜
@aritrasarkar1557
@aritrasarkar1557 5 жыл бұрын
Sir can you do lecture on computer science networking. Thank you
@Zaii_3
@Zaii_3 3 жыл бұрын
I love you bro keep it up!
@RahulKumar-no3rs
@RahulKumar-no3rs 5 жыл бұрын
Data structures pls
@block8974
@block8974 7 ай бұрын
What if str1 is longer than s2, but str1 begins with B and str2 begins with A
@theharshvardhanagarwal
@theharshvardhanagarwal 24 күн бұрын
He won't answer this question, s1 is less than s2
@jeffbezos3942
@jeffbezos3942 3 жыл бұрын
Does it also work for single letters?
@ragnarlothbrok367
@ragnarlothbrok367 2 жыл бұрын
Single letter string is fine, but single char is not
@akshatk1690
@akshatk1690 2 жыл бұрын
string
@dilipjain6899
@dilipjain6899 5 жыл бұрын
where is the value of strcmp stored?
@AbdurRahman-ph7ms
@AbdurRahman-ph7ms 3 жыл бұрын
Strcmp is a function
@cond6920
@cond6920 4 жыл бұрын
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
@stevenshrii
@stevenshrii 3 жыл бұрын
Sam
@safwan096
@safwan096 2 жыл бұрын
sky code? dafaq are you saying bruh
@sealandland3959
@sealandland3959 3 жыл бұрын
what the hell is "furst" ?
@178fahimahmed7
@178fahimahmed7 4 жыл бұрын
Not informative. u should run it in the Code blocks for better understanding
@carlossantamaria1820
@carlossantamaria1820 3 жыл бұрын
It's completely understandable
@quamzgraphix9826
@quamzgraphix9826 4 жыл бұрын
Thank you very much for this video...
@Gamer-rs6ow
@Gamer-rs6ow 5 ай бұрын
Thank you
@abhishek5212
@abhishek5212 11 ай бұрын
Thank you so much ❤❤❤❤❤
Array of Strings
4:44
Neso Academy
Рет қаралды 149 М.
C_68 C program to Compare two Strings | with strcmp() and without strcmp() function
26:44
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 121 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
Recursion in C
11:12
Neso Academy
Рет қаралды 949 М.
C String Library and String Copy Function - strcpy()
9:00
Neso Academy
Рет қаралды 153 М.
Be Careful When Using scanf() in C
12:22
NeuralNine
Рет қаралды 130 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 428 М.
you will never ask about pointers again after watching this video
8:03
Comparing strings in C
8:07
CodeVault
Рет қаралды 24 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
strtok() function | C Programming Tutorial
12:36
Portfolio Courses
Рет қаралды 64 М.
C_66 Program to Find Length of a String | C Programming Language
17:09
Jenny's Lectures CS IT
Рет қаралды 254 М.
String Concatenate Functions - strcat() & strncat()
6:04
Neso Academy
Рет қаралды 107 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 121 МЛН