Tuesday, September 6, 2011

STRING COPY- EXAMPLE

I#include<stdio.h>
#include<conio.h>
void main()
{
char str1[] = "indian box";
char str2[20];
strncpy(str2,str1,8);
printf("%s",str2);
getch();
}

OUT PUT:






If U LIKE THE POST FOLLOW THE BLOG

No comments:

Post a Comment