C Program to copy from source string to destination string using built in functions

Program

#include<stdio.h>
#include<string.h>
void main()
{
	char source[20], dest[20];
	int i;
	printf("Enter a string\n");
	scanf(" %s", source);
	strcpy(dest, source);
	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