Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 29 Ιαν 2012 · I have to find the count of a substring in a string using the C language. I'm using the function strstr but it only finds the first occurrence. My idea of the algorithm is something like searching in the string while strstr does not return null and to substring the main string on each loop.

  2. 11 Ιουλ 2024 · Using strncpy() function in C. We can also use strncpy() function in C to copy the substring from a given input string. It takes 3 parameters which are the destination string, source string along with starting index and length of the substring which we need to copy. Syntax: strncpy(destination_string,input_string+pos,len);

  3. 17 Οκτ 2024 · Given a string s, the task is to find the length of the longest repeating subsequence, such that the two subsequences don't have the same string character at the same position, i.e. any ith character in the two subsequences shouldn't have the same index in the original string. Examples: Input: s= "a

  4. 9 Μαΐ 2023 · Given two integers N and K, the task is to find the string S of minimum length to contain all possible strings of size N as a substring. The characters of the string should be from integers ranging from 0 to K-1.

  5. 22 Μαΐ 2023 · Write a C program to find the length of the longest substring of a given string without repeating characters. Test Data : Input a string: “abcddefffd” Expected Output: Input a string: Length of the longest substring without repeating characters: 4 Click me to see the solution. 36.

  6. 27 Σεπ 2024 · 1. strstr() — Find Substring. The strstr() function is used to find the first occurrence of a substring in a string.

  7. 2 Φεβ 2024 · In this C program, we begin by declaring a function extractSubstring which takes four parameters: source (the original string), start_index (the starting index of the substring), length (the length of the substring), and substring (the buffer to hold the extracted substring).

  1. Γίνεται επίσης αναζήτηση για