[ad_1]
C substring program to find substring of a string and its all substrings. A substring is itself a string that is part of a longer string. For example, substrings of string “the” are “” (empty string), “t”, “th”, “the”, “h”, “he” and “e.” The header file “string.h” does not contain any library function to find a substring directly.
Bạn đang xem: Substring c# là gì
#include int main() { char string, sub; int position, length, c = 0; printf(“Input a stringn”); gets(string); printf(“Enter the position and length of substringn”); scanf(“%d%d”, &position, &length); while (c length) { sub