About 3,480,000 results
Open links in new tab
  1. Using Recursion to compare 2 strings in C - Stack Overflow

    Mar 2, 2021 · I am required to write a program that uses recursion to compare 2 strings say S1 and S2 which returns 1 , 0 and -1 for s1 > s2, s1 == s2 and s1 < s2 respectively.

  2. C strcmp () | GeeksforGeeks

    Apr 2, 2025 · In C, strcmp () is a built-in library function used to compare two strings lexicographically. It takes two strings (array of characters) as arguments, compares these two …

  3. How to Compare Strings in C? - Tutorial Kart

    In this C Tutorial – Compare Strings, we have gone through the syntax of strcmp () inbuilt function and two other ways using recursion and pointers respectively with Example C Programs.

  4. String Comparison in C - Scaler Topics

    Aug 7, 2022 · There are four methods for string comparison in C. String comparison by using strcmp () String Library function. String comparison without using strcmp () function . String …

  5. Compare Two Strings in C with Examples - Sanfoundry

    Here is a program that compare two strings in C using loops, strcmp function (inbuilt function) and pointers along with detailed explanations and examples.

  6. how to compare between two strings using recursion in C

    i need to compre two strings and to compare them using recursion. in the process to count the number of the differences up to two. i tried this: int strcmp1(char *str1, char *str2){ int err=0; …

  7. compare 2 string recursive in c - Stack Overflow

    I write a function that gets 2 string and compare it recursive, there some rules: if there double letter or small instead of capital/opposite it is return 1, else 0.

  8. c - Recursive function to compare strings without library functions ...

    Mar 2, 2019 · I'm supposed to write a recursive function in C programming language that checks if string 1 is greater than or equal or less than string 2, and thus returning 1, 0, -1 respectively.

  9. recursion - Comparing two different strings with the same name in c

    Nov 6, 2018 · You will need a copy of your original string to which you can compare the reversed string (with strcmp from <string.h>). You could also test for palindromicity recursively without …

  10. c - Recursion with strings - Stack Overflow

    May 26, 2017 · A string is a sequence of characters in memory terminated by a zero (or NUL) character. Providing the address of the first character in the string allows you to find all of the …

  11. Some results have been removed
Refresh