strings programs
strings programs
h>
#include<string.h>
void main()
len1 = strlen(str1);
len2 = strlen(str2);
str1[n + i] = str2[i];
str2[len2 + 1] = '\0';
#include<stdio.h>
#include<string.h>
void main()
{
char str[20];
printf("Enter the position where the characters are to be deleted\n"); scanf("%d", &pos);
len = strlen(str);
str[i - n] = str[i];
str[i - n] = '\0';
#include<stdio.h>
#include<string.h>
void main()
if(found)
{
printf("Second String is found in the First String at %d position.\n", found - s);
else
printf("-1");
##include<stdio.h>
#include <string.h>
void main()
char str[100];
int i = 0, l = 0, f = 1;
gets(str);
l = l + 1;
printf("The number of characters in the string are %d\n", l); for(i = 0; i <= l-1; i++)
f = f + 1;
}
}