I watched no of videos but I found clarity in your video mam thanks for your explanation after listening I immediately subscribed your channel..pls make more videos on c language mam pls
You can also make it in a function. int strcmp(char s[ ], char t[ ]){ int i; for( i = 0; s[ i ] == t[ i ]; i++){//the loop exits when indexes of each string do not match if(s[ i ] == '\0'){ //strings always end in null character as last index in c. For example: "hi my names is bob\0". So if all indexes are equal, function returns 0. return 0; } } return (s[ i ] - t[ i ]);//returns difference if strings do not match. }
If the both string don't have the same number of digit?? Will it stop to the digit where they have in common? Or the string thst has more digit/letters is greater?
This is really great. My textbooks and lecturer didn't explain this. Thank you.
Everything is clearly explained.A good video on strcmp.
Thanks this saved me my time, my life, my money and my job
Mam ur great teacher
Thank for your videos🙏🙏
Explain is very good ❤
Nice way of teaching✌️
Clear cut explanation on strcmp
Thank you very much mam
what lovely loopy handwriting!
Mam your handwriting is very beautiful 🤓
thank you sis for your clear explaination
very nice explanation
I watched no of videos but I found clarity in your video mam thanks for your explanation after listening I immediately subscribed your channel..pls make more videos on c language mam pls
already uploaded all topics from C language...visit my channel u would find
Education 4u can you pls make video on dynamic memory allocation
definitely...soon i will upload
Education 4u thanks mam
Excellent explanation madam thanks a lot
You can also make it in a function.
int strcmp(char s[ ], char t[ ]){
int i;
for( i = 0; s[ i ] == t[ i ]; i++){//the loop exits when indexes of each string do not match
if(s[ i ] == '\0'){ //strings always end in null character as last index in c. For example: "hi my names is bob\0". So if all indexes are equal, function returns 0.
return 0;
}
}
return (s[ i ] - t[ i ]);//returns difference if strings do not match.
}
thank you so much for explanation, saved my life
thank u mam this helped me a lot
Thank you Maidum Jee
If the both string don't have the same number of digit?? Will it stop to the digit where they have in common? Or the string thst has more digit/letters is greater?
thank you for the wonderful explanation
thank u
thanks for the clear explanation
Perfect explanation thank you so much
you guys are better than my professors
Best video ever🙏🙏🙏
Mam in last case u using else if instead of else only I guss
Please clarify this .....🙏🙏🙏
thank u so much laidie
i'm from morroco i'm following from a long time
can u do a tuturial about the basic to learn javascript
Thank you ma'am.
Nice explanation
you are perfect my god pleased you
keep up the good work!
Pls pls make a videos in hindi it would be very helpful for us.
i
I guess she's explaining wrong, ASCII value of r is 85 and I is 105.
Amazing!
Thanks for this ..
I’m here because Cisco claims Huawei copied their STRCMP code. Lul
awesome
I didn't understood r and i how to check its greater ?
where is the value of strcmp stored?
thank you!
But in output I am getting ....there is equal to their
🥰
Idk how this came up, I was just typing jiberish
i was trying to not get a horrible grade in programming class :(