/* Programming to copy the left n characters */
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
	char a[50],b[50];
	int n;
	clrscr();
	printf("enter the first string\n");
	scanf("%s",a);
	printf("enter the second string\n");
	scanf("%s",b);
	printf("how many characters to copy\n");
	scanf("%d",&n);
	strncpy(a,b,n);
		printf("Copy after the left Char=%s",a);
	getch();
}
/*
	input :
	enter the first string
	jeganathan
	enter the second string
	gunanathan
	how many characters to copy
	4
	output:
	Copy after the left Char=jeganathan
*/