#include <stdio.h>
#include <string.h>
int main() {
// Substring extraction
char text[] = "Programming is fun";
char substring[10];
strncpy(substring, text + 13, 3); // Extract "fun"
substring[3] = '\0'; // Null-terminate the substring
printf("Original Text: %s\n", text);
printf("Extracted Substring: %s\n", substring);
return 0;
}