C Program to copy from source string to destination string without using built in functions
Program
#include<stdio.h>
void main()
{
char source[20], dest[20];
int i;
printf("Enter a string\n");
scanf(" %s", source);
i = 0;
while(source[i] != '\0')
{
dest[i] = source[i];
i++;
}
dest[i] = '\0';
printf("Copied string from source to destination\n");
printf("Destination string is: %s\n", dest);
}
Output
Enter a string
newdelhi
Copied string from source to destination
Destination string is: newdelhi